login
Row 0 of A163336 (column 0 of A163334).
4

%I #9 Jan 14 2024 14:20:37

%S 0,5,6,47,48,53,54,59,60,425,426,431,432,437,438,479,480,485,486,491,

%T 492,533,534,539,540,545,546,3827,3828,3833,3834,3839,3840,3881,3882,

%U 3887,3888,3893,3894,3935,3936,3941,3942,3947,3948,4313,4314,4319

%N Row 0 of A163336 (column 0 of A163334).

%F From _Kevin Ryde_, Oct 06 2020: (Start)

%F a(n) = A163332(A208665(n)), including at n=0 by reckoning A208665(0)=0.

%F a(n) = 3*A163480(n) + (2 if n odd).

%F (End)

%o (PARI) a(n) = my(v=digits(n,3),s=Mod(0,2)); for(i=1,#v, s+=v[i]; v[i]=3*v[i]+if(s,2)); fromdigits(v,9); \\ _Kevin Ryde_, Oct 06 2020

%Y Cf. A163480 (X axis), A208665 (Z-order Y axis).

%K nonn

%O 0,2

%A _Antti Karttunen_, Jul 29 2009