A357490 Numbers k such that the k-th composition in standard order has integer geometric mean.
1, 2, 3, 4, 7, 8, 10, 15, 16, 17, 24, 31, 32, 36, 42, 63, 64, 69, 70, 81, 88, 98, 104, 127, 128, 136, 170, 255, 256, 277, 278, 282, 292, 325, 326, 337, 344, 354, 360, 394, 418, 424, 511, 512, 513, 514, 515, 528, 547, 561, 568, 640, 682, 768, 769, 785, 792, 896
Offset: 1
Keywords
Examples
The terms together with their corresponding compositions begin: 1: (1) 2: (2) 3: (1,1) 4: (3) 7: (1,1,1) 8: (4) 10: (2,2) 15: (1,1,1,1) 16: (5) 17: (4,1) 24: (1,4) 31: (1,1,1,1,1) 32: (6) 36: (3,3) 42: (2,2,2) 63: (1,1,1,1,1,1) 64: (7) 69: (4,2,1)
Crossrefs
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Select[Range[0,1000],IntegerQ[GeometricMean[stc[#]]]&]
Comments