login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A091806
Given the infinite continued fraction i+(i/(i+(i/(i+...)))), where i is the square root of (-1), this is the numerator of the real part of the convergents.
7
0, 1, 1, 3, 2, 3, 26, 53, 111, 77, 480, 5, 2080, 333, 1001, 18747, 39014, 20297, 168954, 117199, 731679, 1522639, 3168640, 16485, 653440, 28556241, 59426081, 9512831, 257352966, 14876567, 1114503066, 2319302053, 4826511631, 10044062391
OFFSET
1,4
COMMENTS
The sequence of complex numbers (which this sequence is part of) converges to (i+sqrt(-1+4i))/2, found by simply solving the equation A = i + (i/A) for A using the quadratic formula. When plotted in the complex plane, these numbers form a counterclockwise spiral that quickly converges to a point.
LINKS
EXAMPLE
a(6) = 3 since the sixth convergent is (3/5) + (13/10)i and hence the numerator of the real part is 3.
MAPLE
A091806 := proc(n)
numtheory[cfrac]([I, [I, I]$n-1]) ;
numer(Re(%)) ;
end proc:
seq(A091806(n), n=1..100) ; # Robert Israel, Mar 14 2016
MATHEMATICA
GenerateA091806[1] := I; GenerateA091806[n_] := I + I/(GenerateA091806[n-1]); GenerateNumeratorsA091806[n_] := Table[Numerator[Re[GenerateA091806[x]]], {x, 1, n}]; (* GenerateNumeratorsA091806[20] would give the first 20 terms. *)
A091806[n_] := Numerator[ Re[ Fold[ I/(I + #) &, 1, Range[n]]]]; Table[ A091806[n], {n, 0, 32}] (* Robert G. Wilson v, Mar 13 2004 *)
CROSSREFS
KEYWORD
cofr,frac,nonn
AUTHOR
Ryan Witko (witko(AT)nyu.edu), Mar 06 2004
EXTENSIONS
More terms from Robert G. Wilson v, Mar 13 2004
STATUS
approved