login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A115630
Inverse permutation to sequence A113821.
2
1, 2, 3, 7, 4, 5, 6, 29, 11, 16, 12, 8, 9, 10, 13, 121, 14, 17, 15, 18, 19, 20, 21, 30, 22, 23, 24, 25, 26, 27, 28, 497, 37, 46, 38, 67, 39, 47, 40, 31, 32, 33, 34, 35, 36, 41, 42, 122, 43, 48, 44, 68, 45, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 2017, 59, 60, 61, 69, 62, 63, 64, 65
OFFSET
1,2
LINKS
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
Cf. A113821.
Sequence in context: A109205 A285294 A371258 * A195795 A143528 A118810
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Jan 29 2006
STATUS
approved