A354908 Numbers k such that the k-th composition in standard order (graded reverse-lexicographic, A066099) is collapsible.
1, 2, 3, 4, 7, 8, 10, 11, 14, 15, 16, 31, 32, 36, 39, 42, 43, 46, 47, 58, 59, 60, 62, 63, 64, 127, 128, 136, 138, 139, 142, 143, 168, 170, 171, 174, 175, 184, 186, 187, 190, 191, 232, 234, 235, 238, 239, 248, 250, 251, 254, 255, 256, 292, 295, 316, 319, 484
Offset: 1
Keywords
Examples
The terms together with their corresponding compositions begin: 1:(1) 2:(2) 4:(3) 8:(4) 16:(5) 32:(6) 3:(11) 7:(111) 10:(22) 31:(11111) 36:(33) 11:(211) 39:(3111) 14:(112) 42:(222) 15:(1111) 43:(2211) 46:(2112) 47:(21111) 58:(1122) 59:(11211) 60:(1113) 62:(11112) 63:(111111)
Crossrefs
Programs
-
Mathematica
repcams[q_List]:=repcams[q]=Union[{q},If[UnsameQ@@q,{},Union@@repcams/@Union[Insert[Drop[q,#],Plus@@Take[q,#],First[#]]&/@Select[Tuples[Range[Length[q]],2],And[Less@@#,SameQ@@Take[q,#]]&]]]]; stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Select[Range[0,100],MemberQ[repcams[stc[#]],{_}]&]
Comments