Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

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.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M91616357

Have any Question?


Related Questions in Homework Help/Study Tips

Latoyas-dq1time management is going to be important as you

Latoya's- DQ#1 Time management is going to be important as you try to balance school with work and family life. Please write one or two paragraphs and consider the following: • When and where are you planning to study an ...

Question no plagiarism pleasewill need minimum of 300 words

Question: No plagiarism please. Will need minimum of 300 words, APA Style, double spaced, times new roman, font 12, and Include: (3 references within years 2015-2018) with intext citations. This week's Discussion will fo ...

Question assignment instructions here are the instructions

Question: Assignment Instructions: Here are the instructions to complete your problem-solving group project: • Create a group of 3 to 5 people. You can create a group using classmates from this class, but it is not a req ...

The objective of this assignment is to encourage students

The objective of this assignment is to encourage students to use Excel spread sheets to aid in solving a capital budgeting problem, and to analyse how the market impounds new information into stock prices. Hypothetical c ...

Question plan of action-a literature review for a public

Question: Plan of Action-A Literature Review for A Public Health Problem The literature review process can be an inexact science and tedious process because of the extensive scope of public health material, studies, and ...

Question discuss status offenses be sure to include a

Question : Discuss status offenses. Be sure to include a definition of status offenses and a summary of two types. How could these lead to a life of crime? Your response must be a minimum of 200 words.

Complete this assignment as if you were a fire chief and

Complete this assignment as if you were a fire chief, and according to APA format. Memorandum to City Council: Chief officers are often viewed as the subject-matter expert in anything related to fire department functions ...

Written assignment -task analyze certain situations of

Written Assignment - Task: Analyze certain situations of conflict and come up with a solution. The task: Below you will find 4 situations of conflict. Analyse each situation and come up with a solution. At the end of the ...

Question daryl kirby opened squid realty co on january 1

Question: Daryl Kirby opened Squid Realty Co. on January 1, 2015. At the end of the first year, the business needed additional capital. On behalf of Squid Realty Co., Daryl applied to Ocean National Bank for a loan of $3 ...

Question family therapy courseplease put the question or

Question: Family Therapy Course Please put the question or section name above each paragraph Create a concept map of the workings of neurons and neurotransmitters from the subject of psychopharmacology. Your concept map ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As