[go: up one dir, main page]

login
A211864
Powers of three read in base 2.
0
1, 3, 9, 11, 17, 19, 41, 43, 81, 131, 169, 219, 241, 419, 681, 651, 849, 1203, 2441, 1867, 4369, 3027, 5625, 12475, 15457, 26403, 26553, 48795, 54561, 99667, 80345, 158731, 221313, 332467, 460857, 375451, 569345, 987267, 1181145, 1594971, 1924001, 4458531
OFFSET
0,2
EXAMPLE
a(3)=11 because 3^3=27_10 but in base 2 it is interpreted as 2*2^1+7*2^0=4+7=11. That is to say, digits larger than the base are carried.
MATHEMATICA
f[n_] := FromDigits[ IntegerDigits[3^n], 2]; Array[f, 42, 0]
CROSSREFS
Cf. A004656.
Sequence in context: A201544 A225771 A215816 * A157139 A050538 A062227
KEYWORD
nonn,base,easy
AUTHOR
Robert G. Wilson v, Feb 10 2013
STATUS
approved