A164364 a(n) = A164349(2^n).
1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0
Offset: 0
Keywords
Links
- Paul Tek, Table of n, a(n) for n = 0..10000
Programs
-
Maple
A053645 := proc(n) local dgs ; dgs := convert(n,base,2) ; add(op(i,dgs)*2^(i-1),i=1..nops(dgs)-1) ; end: A164349 := proc(n) option remember; if n <= 1 then n; else a := A053645(n-1) ; while a > 1 do a := A053645(a-1) ; od: a ; fi; end: A164364 := proc(n) A164349(2^n) ; end: seq(A164364(n),n=0..120) ; # R. J. Mathar, Aug 17 2009
-
Mathematica
t = Nest[ Most@ Flatten@ {#, #} &, {0, 1}, 25]; Table[ t[[2^n + 1]], {n, 0, 25}] (* Robert G. Wilson v, Aug 17 2009 *)
Extensions
More terms from R. J. Mathar, Aug 17 2009
Incorrect comments removed by Jack W Grahl, Dec 26 2014
Comments