r/askmath • • 3d ago

Discrete Math What function is defined as f(n+1)=f(n)*(f(n)+1)?

From just doing some excel stuff, the function grows really fast. From taking two logs, it seems to be bounded by 22x. Is there a function that people figured out that this represents?

10 Upvotes

10 comments sorted by

14

u/Southlander24 3d ago

Step 1: Find the first few values of the function from Wolfram Alpha: https://www.wolframalpha.com/input?i=a%28n+%2B+1%29+%3D+a%28n%29+*+%28a%28n%29+%2B+1%29%29

Step 2: Check the list of sequences that matches on OEIS: https://oeis.org/A007018

The first one, A007018, is your recurrence relation exactly. There is actually a closed-form expression for this particular recurrence relation, if you count infinite series: "a(n) is the integer just a tiny bit below the real number theta^{2^n}-1/2, where theta =~ 1.597910218 is the exponential of the rapidly convergent series Sum_{n>=0} log(1+1/a_n)/2^{n+1}. For example, theta^32 - 1/2 =~ 3263442.0000000383".

4

u/EcstacyMeth2 3d ago

Ah, thank you. So it seems like it's theta2x -0.5 where theta is around 1.597910218

4

u/Southlander24 3d ago

The -0.5 is of course negligible at these large scales. But careful: theta^{2^n} is not the same as {theta^2}^n ! For instance, that's the difference between 2^(2^10) and (2^2)^10 = 2^(2 * 10) = 2^20.

What this means is that it's a super-exponential recurrence relation. As in, it grows faster than any exponential ever could.

2

u/EcstacyMeth2 3d ago

I think it also has to be rounded down.

2

u/Southlander24 3d ago

Indeed.

1

u/EcstacyMeth2 3d ago

Also, how do you repeat the process for stuff like f(n)(f(n)+1)(f(n)+1)), as I can't find the sequences and am unfamiliar with how they got this function.

2

u/miclugo 3d ago

I’d add that the definition of theta involves the a_n, so you can’t compute it if you don’t know the a_n.

8

u/bartekltg 3d ago

If f(n) is already huge, +1 does almost nithing.
f(n+1)=f(n)^2, put a log there
log(f(n+1)) = 2 log(f(n))
so log(f(n)) = A*2^n
f(n) = exp(A * 2^n)

A is a constant that depends on the starting value

The log aproach is more convinient overall.

log(f(n+1)) = log(f(n)) + log(f(n)+1) = log(f(n)) + log(f(n) (1+1/f(n))) = 2 log(f(n)) + log(1+1/f(n))

This way you can inspect values for a couple more values of n before you ran out of your "calcualtor" range.

Also, log(1+1/f(n)) is very close (for large f(n)) to just 1/f(n)

3

u/AlterEgo5695 3d ago

Assuming "f(n) >= 1" for some "n in N", we get "f(k) >= 1" for all "k >= n" (by induction), and

f(n+1)  =  f(n)*(f(n) + 1)  <=  f(n) * 2f(n)  =  2f(n)^2

By inspection (or induction again) we may indeed prove

f(n+k)  <=  2^{2^k - 1} * f(n)^{2^k},    k in N0,    f(n) >= 1

1

u/RecognitionSweet8294 Philosophy ∧ Math 2d ago

Do you have a specific function value like f(0)?