A331579 Position of first appearance of n in A124758 (products of compositions in standard order).
1, 2, 4, 8, 16, 18, 64, 34, 36, 66, 1024, 68, 4096, 258, 132, 136, 65536, 146, 262144, 264, 516, 4098
Offset: 1
Examples
The list of terms together with the corresponding compositions begins: 1: (1) 2: (2) 4: (3) 8: (4) 16: (5) 18: (3,2) 64: (7) 34: (4,2) 36: (3,3) 66: (5,2) 1024: (11) 68: (4,3) 4096: (13) 258: (7,2) 132: (5,3) 136: (4,4) 65536: (17) 146: (3,3,2) 262144: (19) 264: (5,4)
Crossrefs
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; q=Table[Times@@stc[n],{n,1000}]; Table[Position[q,i][[1,1]],{i,First[Split[Union[q],#1+1==#2&]]}]
Comments