19.8k views
4 votes
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?

User Glendy
by
7.9k points

1 Answer

5 votes
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
User Nandin Borjigin
by
8.3k points

Related questions

asked May 3, 2024 152k views
Tatisha asked May 3, 2024
by Tatisha
7.9k points
1 answer
4 votes
152k views
2 answers
2 votes
6.9k views
asked Oct 21, 2024 88.3k views
Deusdeorum asked Oct 21, 2024
by Deusdeorum
8.6k points
1 answer
0 votes
88.3k views