A372471 Irregular triangle read by rows where row n lists the binary indices of the n-th prime number.
2, 1, 2, 1, 3, 1, 2, 3, 1, 2, 4, 1, 3, 4, 1, 5, 1, 2, 5, 1, 2, 3, 5, 1, 3, 4, 5, 1, 2, 3, 4, 5, 1, 3, 6, 1, 4, 6, 1, 2, 4, 6, 1, 2, 3, 4, 6, 1, 3, 5, 6, 1, 2, 4, 5, 6, 1, 3, 4, 5, 6, 1, 2, 7, 1, 2, 3, 7, 1, 4, 7, 1, 2, 3, 4, 7, 1, 2, 5, 7, 1, 4, 5, 7, 1, 6, 7
Offset: 1
Examples
We have prime(12) = (2^1 + 2^3 + 2^6)/2, so row 12 is (1,3,6). Each prime followed by its binary indices: 2: 2 3: 1 2 5: 1 3 7: 1 2 3 11: 1 2 4 13: 1 3 4 17: 1 5 19: 1 2 5 23: 1 2 3 5 29: 1 3 4 5 31: 1 2 3 4 5 37: 1 3 6 41: 1 4 6 43: 1 2 4 6 47: 1 2 3 4 6
Crossrefs
Programs
-
Mathematica
Table[Join@@Position[Reverse[IntegerDigits[Prime[n],2]],1],{n,15}]
Comments