OFFSET
0,4
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1023
FORMULA
a(n) = A072726(m) where m = n - 2^(floor(log_2(n))). a(0) = 0, a(2^k) = 1, a(2^k + 1) = 2, a(2^k - 1) = the k-th Pell number. [Corrected by Sean A. Irvine, Oct 22 2024]
CROSSREFS
KEYWORD
easy,frac,nice,nonn,changed
AUTHOR
Paul D. Hanna, Jul 09 2002
STATUS
approved