OFFSET
1,1
COMMENTS
FORMULA
a(1) = 2, a(2) = 3; a(2*n) = a(2*n-1)*A006519(n) + a(2*n-2) for n>1, a(2*n-1) = 2*a(2*n-2) + a(2*n-3) for n>1.
EXAMPLE
The constant is 2*x=2.707742256859764748777788168033216248454666833624237..
contfrac(2*x) = [2;1, 2,2, 2,1, 2,4, 2,1, 2,2, 2,1, 2,8,... 2, A006519(n),... ].
PROG
(PARI) {a(n)=if(n==1, 2, if(n==2, 3, if(n%2==1, 2*a(n-1)+a(n-2), a(n-1)*2^valuation(n/2, 2)+a(n-2))))}
CROSSREFS
KEYWORD
cofr,nonn
AUTHOR
Paul D. Hanna, Nov 18 2004
STATUS
approved