OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..255
EXAMPLE
A113821(29) = 8, so a(8) = 29.
MATHEMATICA
Block[{a = {1}}, Do[a = Join[a, Take[#, n]] &@ Select[Flatten@ Position[Array[BitAnd[n, #] &, 6000], k_ /; k > 0], FreeQ[a, #] &], {n, 2, 100}]; With[{t = ConstantArray[0, Max@ a]}, TakeWhile[#, # > 0 &] &@ ReplacePart[t, Sort[MapIndexed[#1 -> First@ #2 &, a]]]]] (* Michael De Vlieger, Aug 16 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Jan 29 2006
STATUS
approved