login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Lexicographically earliest sequence of distinct positive integers such that for any n>0 the number of ones in the binary representation of a(n) divides n.
2

%I #11 May 30 2014 23:27:26

%S 1,2,4,3,8,5,16,6,7,9,32,10,64,12,11,15,128,13,256,17,14,18,512,19,31,

%T 20,21,23,1024,22,2048,24,25,33,47,26,4096,34,28,27,8192,35,16384,29,

%U 37,36,32768,30,127,40,38,39,65536,41,55,43,42,48,131072,44

%N Lexicographically earliest sequence of distinct positive integers such that for any n>0 the number of ones in the binary representation of a(n) divides n.

%C This is a permutation of the positive integers.

%C Is this the same as A242706? - _R. J. Mathar_, May 30 2014

%H Paul Tek, <a href="/A242722/b242722.txt">Table of n, a(n) for n = 1..10000</a>

%H Paul Tek, <a href="/A242722/a242722.txt">PARI program for this sequence</a>

%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

%o (PARI) See Link section.

%Y Cf. A242705.

%K nonn,base

%O 1,2

%A _Paul Tek_, May 21 2014