login
A162407
a(n) = A162406(n+1) - A162406(n).
2
1, 2, 1, 4, 5, 2, 1, 4, 9, 5, 5, 4, 5, 14, 1, 16, 17, 9, 9, 5, 21, 5, 5, 4, 9, 5, 5, 14, 14, 30, 1, 16, 16, 17, 35, 9, 9, 9, 9, 40, 9, 21, 21, 44, 5, 14, 5, 16, 49, 9, 9, 5, 21, 5, 5, 14, 14, 14, 14, 30, 30, 30, 63, 64, 16, 16, 16, 17, 17, 35, 35, 9, 9, 9, 9, 9, 9, 14, 9, 80, 40, 9, 9, 21
OFFSET
0,2
COMMENTS
a(j) can only equal some A162406(k). [Robert G. Wilson v, Aug 01 2009]
MATHEMATICA
a[0] = 1; a[n_] := a[n] = a[n - 1] + Max@ Select[ Table[a@i, {i, 0, n - 1}], StringPosition[ ToString@ FromDigits@ IntegerDigits[n, 2], ToString@ FromDigits@ IntegerDigits[ #, 2]] != {} &]; t = Table[ a@n, {n, 0, 100}]; Rest@t - Most@t (* Robert G. Wilson v, Aug 01 2009 *)
CROSSREFS
Sequence in context: A114158 A370181 A248666 * A368608 A352458 A132741
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jul 02 2009
EXTENSIONS
More terms beginning with a(11) from Robert G. Wilson v, Aug 01 2009
STATUS
approved