Join IDNLearn.com and start getting the answers you've been searching for. Our platform is designed to provide accurate and comprehensive answers to any questions you may have.

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