A265209 Irregular triangle read by rows in which row n lists the base-3 digits of 2^n, n >= 0.
1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 0, 1, 2, 2, 1, 0, 1, 1, 1, 2, 0, 2, 1, 0, 0, 1, 1, 1, 2, 0, 0, 2, 2, 2, 1, 1, 0, 1, 2, 2, 1, 2, 2, 1, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 1, 1, 0, 2, 0, 2, 0, 1, 0, 2, 2, 1, 1, 1, 1, 0, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2
Offset: 0
Examples
Triangle begins: 1 2 1 1 2 2 1 2 1 1 0 1 2 2 1 0 1 1 1 2 0 2 1 0 0 1 1 1 2 0 0 2 2 2 1 1 0 1 2 2 1 2 2 1 0 2 1 2 1 2 1 2 1 2 0 1 1 0 2 0 2 0 1 0 2 2 1 1 1 1 0 2 1 1 1 1 2 2 2 2 1 1 2 2
Crossrefs
Programs
-
Mathematica
(* Replace Flatten with Grid to display the triangle: *) Flatten[Table[IntegerDigits[2^n, 3], {n, 0, 15}]]
-
PARI
for(n=0,15,for(k=1,#digits(2^n,3),print1(digits(2^n,3)[k],", "))) \\ Derek Orr, Dec 24 2015
Comments