A307433 A special version of Pascal's triangle where only powers of 2 are permitted.
1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 4, 4, 1, 1, 1, 2, 1, 8, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 4, 4, 4, 4, 4, 4, 1, 1, 1, 2, 1, 8, 8, 8, 8, 8, 1, 2, 1, 1, 1, 1, 1, 16, 16, 16, 16, 1, 1, 1, 1, 1, 2, 2, 2, 1, 32, 32, 32, 1, 2, 2, 2, 1
Offset: 0
Examples
The triangle begins: 1 1 1 1 2 1 1 1 1 1 1 2 2 2 1 1 1 4 4 1 1 1 2 1 8 1 2 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 1 1 1 4 4 4 4 4 4 1 1 1 2 1 8 8 8 8 8 1 2 1 1 1 1 1 16 16 16 16 1 1 1 1 1 2 2 2 1 32 32 32 1 2 2 2 1 1 1 4 4 1 1 64 64 1 1 4 4 1 1 1 2 1 8 1 2 1 128 1 2 1 8 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..8255 (rows n = 0..127)
- Rémy Sigrist, Colored representation of the first 1024 rows (where the hue is function of log(T(n,k)))
- Rémy Sigrist, Colored representation of the first 1024 rows (where black pixels correspond to ones)
Programs
-
PARI
for (r=1, 13, apply(v -> print1 (v", "), row=vector(r, k, if (k==1 || k==r, 1, hammingweight(s=row[k-1]+row[k])==1, s, 1))))
Comments