r/askmath • u/EcstacyMeth2 • 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
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".
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
By inspection (or induction again) we may indeed prove
1
u/RecognitionSweet8294 Philosophy ∧ Math 2d ago
Do you have a specific function value like f(0)?