OFFSET
0,2
LINKS
FORMULA
From Philippe Deléham, Jan 28 2004: (Start)
a(0) = 1, a(1) = 11, a(n) = 99*a(n-2) for n > 1.
G.f.: (1+11*x)/(1-99*x^2). (End
EXAMPLE
1, 11/10, 99/100, 1089/1000, 9801/10000, 107811/100000, 970299/1000000, ...
MAPLE
b := proc(n) option remember; if n = 0 then 1 else expand(simplify(b(n-1)+(-1)^(n+1)*b(n-1)/10)); fi; end;
MATHEMATICA
nxt[{n_, a_}]:={n+1, Numerator[a+(a (-1)^n)/10]}; NestList[nxt, {0, 1}, 20][[;; , 2]] (* or *) LinearRecurrence[{0, 99}, {1, 11}, 20] (* Harvey P. Dale, Oct 18 2024 *)
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Dario Ramos (dario_metal(AT)hotmail.com), Jan 27 2004
EXTENSIONS
Index corrected to 0, remove erroneous formula. - Ray Chandler, Oct 19 2024
STATUS
approved