A354904 Numbers k such that the k-th composition in standard order is not the sequence of run-sums of any other composition.
3, 7, 11, 14, 15, 19, 23, 27, 28, 29, 30, 31, 35, 39, 43, 46, 47, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 67, 71, 75, 78, 79, 83, 87, 91, 92, 93, 94, 95, 99, 103, 107, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127
Offset: 1
Keywords
Examples
The terms and their corresponding compositions begin: 3: (1,1) 7: (1,1,1) 11: (2,1,1) 14: (1,1,2) 15: (1,1,1,1) 19: (3,1,1) 23: (2,1,1,1) 27: (1,2,1,1) 28: (1,1,3) 29: (1,1,2,1) 30: (1,1,1,2) 31: (1,1,1,1,1)
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Select[Range[0,100],FreeQ[Total/@Split[#]&/@ Join@@Permutations/@IntegerPartitions[Total[stc[#]]],stc[#]]&]
Comments