# Math Help - Pretty difficult function

1. ## Pretty difficult function

Here is the function:

Code:
x(n) = 61x(n-1) + i + 32
Basically, it starts at x=0, it multiplies x by 61 and adds 32 and i.

Assume i is 12,

1st time: x=44
2nd time: x=2728

I need to get x(n-1) starting from the last number

So for example if I supply x=2728, the answer will give me a reduced value of (44).

2. Hi

Originally Posted by ken.stend
Here is the function:

Code:
x(n) = 61x(n-1) + i + 32
Basically, it starts at x=0, it multiplies x by 61 and adds 32 and i.

Assume i is 12,

1st time: x=44
2nd time: x=2728

I need to get x(n-1) starting from the last number

So for example if I supply x=2728, the answer will give me a reduced value of (44).

What exactly is your question, because
x(n) = 61x(n-1) + i + 32

$x_{n-1} = \frac{x_n - i - 32}{61}$

i.e. x_n = 2728, i=12

=> $x_{n-1} = \frac{2728 - 12 - 32}{61} = 44$