A352696 a(n) = k if the binary representation of k has a 1 (0) exactly where a 1 in the n-th row of A237048 occurs at an odd (even) position, reading from left to right.
1, 1, 2, 1, 2, 3, 2, 1, 5, 2, 2, 3, 2, 2, 11, 1, 2, 6, 2, 3, 10, 2, 2, 3, 5, 2, 10, 3, 2, 13, 2, 1, 10, 2, 11, 6, 2, 2, 10, 3, 2, 13, 2, 2, 45, 2, 2, 3, 5, 5, 10, 2, 2, 13, 10, 3, 10, 2, 2, 14, 2, 2, 43, 1, 10, 13, 2, 2, 10, 11, 2, 7, 2, 2, 44, 2, 11, 12, 2, 3, 21, 2, 2, 14, 10
Offset: 1
Keywords
Examples
Sequence values for the first 4 powers of 3: {a(1), a(3), a(9), a(27)} = {1, 2, 5, 10} = {1, 10, 101, 1010}. Table for a(1..16), a(27) and a(28) together with their lists of the base-2 representation, of the odd/even positions of 1's in the n-th row of A237048, and of the sizes of the parts in SRS(n): n a(n) odd/even A237048 A237270 1 1 {1} {1} {1} 2 1 {1} {1} {3} 3 2 {1,0} {1,1} {2,2} 4 1 {1} {1,0} {7} 5 2 {1,0} {1,1} {3,3} 6 3 {1,1} {1,0,1} {12} 7 2 {1,0} {1,1,0} {4,4} 8 1 {1} {1,0,0} {15} 9 5 {1,0,1} {1,1,1} {5,3,5} 10 2 {1,0} {1,0,0,1} {9,9} 11 2 {1,0} {1,1,0,0} {6,6} 12 3 {1,1} {1,0,1,0} {28} 13 2 {1,0} {1,1,0,0} {7,7} 14 2 {1,0} {1,0,0,1} {12,12} 15 11 {1,0,1,1} {1,1,1,0,1} {8,8,8} 16 1 {1} {1,0,0,0,0} {31} ... 27 10 {1,0,1,0} {1,1,1,0,0,1} {14,6,6,14} 28 3 {1,1} {1,0,0,0,0,0,1} {56} ...
Crossrefs
Programs
-
Mathematica
(* function a237048[ ] is defined in A237048 *) b237048[n_] := Fold[2#1+Mod[#2, 2]&, 0, Flatten[Position[a237048[n], 1]]] a352696[n_] := Map[b237048, Range[n]] a352696[85]
Comments