Summing the functions of the previous function

gallaga

New Member
Joined
May 24, 2011
Messages
3
I have a base number that I would like to start with, with that number I would like to then add a mathematical function of itself to it and then repeat it a certain number of times. Therefore I would be taking the result of the base number + function and adding a function of the sum to the sum, resulting in another number

For example if I had a base number of 10 and an arbitrary denominator of 2:

I would take the base number, 10, then add (10 / 2) to it. From there I would like take that resulting number, which is (10 + (10/2)), and add ((10+(10/2)) / 2) to it.

We could replace (10 + (10/2)) with f(b), that is a function of the base number before it, and the equation would be f(b) = b + (b/2).

I want to come up with a one line formula for excel that takes the initial base number I give it and adds f(b) to f(b-1) a specified number of times (around 200 or so times).

Can anyone help?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to the board.

In B1, enter 1

In A1, =IF(B1=1, 10, A1 + A1/2)

Enable the desired number of iterations (say, 20) and clear B1.

Or compute it in closed form: =10*(1 + 1/2)^20 ~ 33253
 
Upvote 0
You have to enable iteration. It Excel 2003, Tools > Options > Calculation ...
 
Upvote 0
Maybe skip the iteration and use the closed form solution; it's faster.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top