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

  Theories in early childhood development

Describe the following theories in early childhood development. psychoanalytic theory, contextual theory, and the cognitive theory.

  In this assignment you will consider what influences

in this assignment you will consider what influences interstate commerce and if exceptions to statutes are

  Discussion on resiliency factors and prosocial behavior

Discussion-Resiliency Factors and Prosocial Behavior

  What is the probable skin tone of their offspring

A dark-skinner woman, whose parents and grandparents all had very dark skin, marries a light-skinned man, whose parents and grandparents were all very light-skinned. What is the probable skin tone of their offspring?(not an easy answer -fair warning!..

  Why white collar crimes are often overlooked

White collar crimes are often overlooked or ignored in communities because they do not see them as a serious crime compared to crimes in a poorer part of a community.

  Business sustainability report for gorilla health bars

Write a 1, 000-word Business Sustainability Report for Gorilla Health Bars CEO Janet Jones, in which you make specific recommendations, based on your research, about how the company can become more sustainable.

  What is the demand schedule for maine lobsters now that

suppose that the supply schedule of maine lobsters is as followsa. draw the demand curve and the supply curve for maine

  Analyze the impact of technology on a field of study

Analyze the impact of technology on a field of study of your choice. This option represents a more general approach to the essay.

  Write a bad newsletter to a customer who has requested an

write a bad newsletter to a customer who has requested an exemption to a companys policy. possible requests that would

  Health care organizations in the community

The present thought is to enter to a joint venture or some sort of partnership arrangement with other health care organizations in the community in order to enhance your market position and raise profits.

  National authority has traditionally been preferred

National authority has traditionally been preferred by

  Getting internship at major corporation requires deal work

According to your textbook, "Getting an internship at a major corporation requires a great deal of work, but the rewards are well worth the effort" is an example of a(n)

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