A037456 a(n)=Sum{d(i)*8^i: i=0,1,...,m}, where Sum{d(i)*3^i: i=0,1,...,m} is the base 3 representation of n.
0, 1, 2, 8, 9, 10, 16, 17, 18, 64, 65, 66, 72, 73, 74, 80, 81, 82, 128, 129, 130, 136, 137, 138, 144, 145, 146, 512, 513, 514, 520, 521, 522, 528, 529, 530, 576, 577, 578, 584, 585, 586, 592, 593, 594, 640, 641, 642, 648, 649, 650, 656, 657, 658, 1024
Offset: 0
Links
- Clark Kimberling, Table of n, a(n) for n = 0..1000
Programs
-
Mathematica
Table[FromDigits[RealDigits[n, 3], 8], {n, 1, 100}] (* Clark Kimberling, Aug 14 2012 *)
Extensions
offset changed to 0.