OFFSET
0,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
J.-P. Allouche and J. Shallit, The Ring of k-regular Sequences, II
J.-P. Allouche and J. Shallit, The ring of k-regular sequences, II, Theoret. Computer Sci., 307 (2003), 3-29.
FORMULA
a(n) = A022441(n) - a(n-1) for n > 0.
a(2n) = 3n + 1 + (floor(log_2 n) mod 2), n >= 1; a(2n+1) = 3n+3, n >= 0. - Jeffrey Shallit, Jun 08 2000
a(n) = A210770(2*n+2). - Reinhard Zumkeller, Mar 25 2012
EXAMPLE
a(2) = 4 because a(1) = 3 and 4 <> a(0)+a(1);
a(3) = 6 because a(2) = 4 and 5 = a(0)+a(1) but 6 <> a(0)+a(1) and 6 <> a(1)+a(2).
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, May 26 2000
STATUS
approved