A265210 Irregular triangle read by rows in which row n lists the base 3 digits of 2^n in reverse order, n >= 0.
1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 0, 1, 1, 0, 1, 2, 2, 0, 2, 1, 1, 1, 1, 1, 0, 0, 1, 2, 2, 2, 0, 0, 2, 1, 2, 2, 1, 0, 1, 1, 2, 1, 2, 0, 1, 2, 2, 1, 0, 2, 1, 2, 1, 2, 1, 2, 0, 1, 0, 2, 0, 2, 0, 1, 1, 1, 2, 0, 1, 1, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1
Offset: 0
Examples
n 0: 1 1: 2 2: 1 1 3: 2 2 4: 1 2 1 5: 2 1 0 1 6: 1 0 1 2 7: 2 0 2 1 1 8: 1 1 1 0 0 1 9: 2 2 2 0 0 2 10: 1 2 2 1 0 1 1 11: 2 1 2 0 1 2 2 12: 1 0 2 1 2 1 2 1 13: 2 0 1 0 2 0 2 0 1 14: 1 1 2 0 1 1 1 1 2 15: 2 2 1 1 2 2 2 2 1 1
Crossrefs
Programs
-
Mathematica
(* Replace Flatten with Grid to display the triangle: *) Flatten[Table[Reverse[IntegerDigits[2^n, 3]], {n, 0, 15}]]
-
PARI
A265210_row(n)=Vecrev(digits(2^n,3)) \\ M. F. Hasler, Dec 05 2015
Comments