What is the maximum amount of american dollars you can get

Assignment Help Other Subject
Reference no: EM13945494

In Byteland they have a very strange monetary system. Each Bytelandian gold coin has an integer number written on it. A coin n can be exchanged in a bank into three coins: n/2, n/3 and n/4. But these numbers are all rounded down (the banks have to make a profit). You can also sell Bytelandian coins for American dollars. The exchange rate is 1:1. But you can not buy Bytelandian coins. You have one gold coin. What is the maximum amount of American dollars you can get for it?

Input The input will contain several test cases (not more than 10). Each testcase is a single line with a number n, 0 <= n <= 1 000 000 000. It is the number written on your coin. Output For each test case output a single line, containing the maximum amount of American dollars you can make. Explanation You can change 12 into 6, 4 and 3, and then change these into $6+$4+$3 = $13. If you try changing the coin 2 into 3 smaller coins, you will get 1, 0 and 0, and later you can get no more than $1 out of them. It is better just to change the 2 coin directly into $2.

Reference no: EM13945494

Questions Cloud

Contrast economic effects of chosen international agreement : Contrast the economic effects of your chosen international agreement on the developing world with the effects on industrialized countries.
Research paper aircraft turbine engine : This activity will involve researching a concept or component related to the turbine engine lubrication system. The concept can be on the different types of synthetic oils used in turbine engines or an explanation of oil analysis. It can be on a c..
Develop the ipo chart, flowchart, and pseudocode for an app : You will need to develop the IPO Chart, flowchart, and pseudocode for an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed.
Determine autonomous consumption expenditure : Determine autonomous consumption expenditure, autonomous investment expenditure, and the marginal propensity to consume.
What is the maximum amount of american dollars you can get : In Byteland they have a very strange monetary system. What is the maximum amount of American dollars you can get for it?
Which policy is better for government during a recession : Keynesian economists would suggest that, during a recession, the government should use stimulus efforts to help support the economy during that recession. Explain which perspective, Keynesian or Austerity, is better policy for government during a r..
Why is vapor pressure of a compound important in remediation : What kind(s) of technology is good for removing contamination from deep seated sites in the subsurface with high concentration of contaminants and why?.
Analysts now expect that dividends will grow annually : Analysts now expect that dividends will grow annually by 3%. Calculate the firm value.
The debt to asset ratio : The cost of equity is 13% and the after-tax cost of debt is 7.5%. The debt to asset ratio is 40%. Calculate the value of the firm.

Reviews

Write a Review

Other Subject Questions & Answers

  Live cultures of bacillus thuringiensis

Live cultures of bacillus thuringiensis (dipel) and B. subtilis (kodiak) are sold as pesticides. what bacterial structures make it possible to package and sell theses bacteria? for what purpose is each products used?

  Understanding of theory and research on gender socialization

Based upon your understanding of the theory and research on gender socialization, what suggestions would you offer to parents and teachers who want to socialize children into more androgynous and flexible gender roles?

  Goldbachs conjecture states every number greater than 2

goldbachs conjecture states every number greater than 2 can be written as the sum of two primes. which sum for 30

  Droped from a height and broken

A stone of 40 kgs weight has droped from a height and broken into 4 pieces. using these 4 pieces it has found that we can weigh the weights from 0 to 40 kg with the increment of 1 kg & what might be the weights of these 4 stones

  Complete combustion of one mole of glucose to carbon dioxide

Assume that the complete combustion of one mole of glucose to carbon dioxide and water liberates 2870 kJ/mol (?G°' = –2870 kJ/mol). If one contraction cycle in muscle requires 63 kJ, and the energy from the combustion of glucose is converted with an ..

  What type of analysis was performed

Tell us the problem statement of the study and provide us an overview of the research effort. Then tell us what kind of quantitative design is used and why it was chosen. Finally, provide details on what type of analysis was performed

  Healthcare patient info ect issues

What is the policy for providing patient information and instructions and then answering the patient's questions?

  System for organizing new government in country

In a one-to-two page (double-spaced) paper, propose a system for organizing a new government in a country with several religious factions. In your paper be sure to address the following questions.

  Potential health effects from radiation exposure

Describe three ways in which you may be exposed to radiation in your community in the next 12 months. Describe three potential health effects from radiation exposure during your lifetime

  Explain the productive and unproductive version of

definedescribe the 4 personality types of freudfromm. which of these personality types do you feel best describes your

  Impact the capital raising process

What might be some of the conflicts of interest that impact the capital raising process? How do the incentives for various players affect their goals in ways that might give rise to conflict.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd