The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A354041 a(n) is the earliest term of A353709 with Hamming weight n. 2

%I

%S 0,1,3,14,30,31,252,508,1020,511,1535,2047,4095,8191,16383,49151,65535

%N a(n) is the earliest term of A353709 with Hamming weight n.

%C This sequence is not strictly increasing.

%H Rémy Sigrist, <a href="/A354041/a354041.txt">C++ program</a>

%F a(n) = A353709(A354040(n)).

%e For n = 3:

%e - the first terms of A353709, alongside their Hamming weight, are:

%e k | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17

%e A353709(k) | 0, 1, 2, 4, 8, 3, 16, 12, 32, 17, 6, 40, 64, 5, 10, 48, 65, 14

%e h(A353709(k)) | 0, 1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 3

%e - the first term of A353709 with Hamming weight 3 is A353709(17) = 14,

%e - so a(3) = 14.

%o (C++) See Links section.

%Y Cf. A000120, A353709, A354040.

%K nonn,base,more

%O 0,3

%A _Rémy Sigrist_, May 15 2022

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified August 11 22:58 EDT 2022. Contains 356067 sequences. (Running on oeis4.)