A211864 Powers of three read in base 2.
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
Examples
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.
Crossrefs
Cf. A004656.
Programs
-
Mathematica
f[n_] := FromDigits[ IntegerDigits[3^n], 2]; Array[f, 42, 0]