A372515 Irregular triangle read by rows where row n lists the positions of zeros in the reversed binary expansion of n.
1, 1, 2, 2, 1, 1, 2, 3, 2, 3, 1, 3, 3, 1, 2, 2, 1, 1, 2, 3, 4, 2, 3, 4, 1, 3, 4, 3, 4, 1, 2, 4, 2, 4, 1, 4, 4, 1, 2, 3, 2, 3, 1, 3, 3, 1, 2, 2, 1, 1, 2, 3, 4, 5, 2, 3, 4, 5, 1, 3, 4, 5, 3, 4, 5, 1, 2, 4, 5, 2, 4, 5, 1, 4, 5, 4, 5, 1, 2, 3, 5, 2, 3, 5, 1, 3, 5
Offset: 1
Examples
The reversed binary expansion of 100 is (0,0,1,0,0,1,1), with zeros at positions {1,2,4,5}, so row 100 is (1,2,4,5). Triangle begins: 1: 2: 1 3: 4: 1 2 5: 2 6: 1 7: 8: 1 2 3 9: 2 3 10: 1 3 11: 3 12: 1 2 13: 2 14: 1 15: 16: 1 2 3 4
Crossrefs
Programs
-
Mathematica
Table[Join@@Position[Reverse[IntegerDigits[n,2]],0],{n,30}]