OFFSET
1,1
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = floor(s*a(n-1)) if n odd, a(n)=floor(r*a(n-1)) if n even, where r=sqrt(2), s=2+r, a(1)=floor(s).
EXAMPLE
a(1)=floor(2+sqrt(2))=3, a(2)=floor(r*a(1))=4.
MAPLE
MATHEMATICA
a[1]:= 3; a[n_]:= If[OddQ[n], Floor[(2+Sqrt[2])*a[n-1]], Floor[Sqrt[2]*a[n-1]]]; Table[a[n], {n, 1, 50}] (* G. C. Greubel, Sep 29 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 27 2010
STATUS
approved