OFFSET
0,3
COMMENTS
Shifted square roots of partial quotients in continued fraction expansion of Cahen's constant: a(n) = sqrt(A006280(n+2)). - Jonathan Sondow, Aug 20 2014
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..13
J. L. Davison and Jeffrey O. Shallit, Continued Fractions for Some Alternating Series, Monatshefte für Mathematik, Vol. 111 (1991), pp. 119-126; alternative link.
MAPLE
MATHEMATICA
a[n_] := a[n] = If[n < 2, 1, a[n-2]^2*a[n-1] + a[n-2]];
Table[a[n], {n, 0, 9}] (* Jean-François Alcover, Sep 23 2022 *)
PROG
(Python)
from itertools import islice
def A006279_gen(): # generator of terms
a, b = 1, 1
yield a
while True:
yield b
a, b = b, a*(a*b+1)
CROSSREFS
KEYWORD
nonn,easy,frac
AUTHOR
EXTENSIONS
Definition clarified by Jonathan Sondow, Aug 20 2014
STATUS
approved