login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A265209
Irregular triangle read by rows in which row n lists the base-3 digits of 2^n, n >= 0.
2
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,2
COMMENTS
The length of row n is A020915(n) = 1 + A136409(n).
EXAMPLE
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
MATHEMATICA
(* Replace Flatten with Grid to display the triangle: *)
Flatten[Table[IntegerDigits[2^n, 3], {n, 0, 15}]]
PROG
(PARI) for(n=0, 15, for(k=1, #digits(2^n, 3), print1(digits(2^n, 3)[k], ", "))) \\ Derek Orr, Dec 24 2015
CROSSREFS
Cf. A000079 (powers of 2), A003137, A004642 (powers of 2 written in base 3).
Cf. A265210 (base 3 digits of 2^n in reverse order).
Sequence in context: A264837 A264714 A375855 * A202340 A049705 A060236
KEYWORD
nonn,tabf,base
AUTHOR
L. Edson Jeffery, Dec 04 2015
STATUS
approved