IDNLearn.com is designed to help you find reliable answers to any question you have. Join our Q&A platform to receive prompt and accurate responses from knowledgeable professionals in various fields.

2. Let's pretend I'd give you a penny today, two pennies
tomorrow, four pennies the next day, etc. Write a function
that expresses the amount of money I'd be giving you on
thenth day. Give us your function in the initial post and give us
a little explanation about how it works.
Would you rather have me give you 40 days of this money
scheme or a billion dollars?


Sagot :

answer:
-f(n+1) = f(n) x 2
-on the 10th day you'd receive $512
-this function works by taking the output of the last input and multiplying it by 2 to find the new output.
-i'd rather take 40 days of this money scheme.

example of use:
f(10) = f(9) x 2
output of f(9) is 256 so f(10) = 256 x 2