cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A163481 Row 0 of A163336 (column 0 of A163334).

Original entry on oeis.org

0, 5, 6, 47, 48, 53, 54, 59, 60, 425, 426, 431, 432, 437, 438, 479, 480, 485, 486, 491, 492, 533, 534, 539, 540, 545, 546, 3827, 3828, 3833, 3834, 3839, 3840, 3881, 3882, 3887, 3888, 3893, 3894, 3935, 3936, 3941, 3942, 3947, 3948, 4313, 4314, 4319
Offset: 0

Views

Author

Antti Karttunen, Jul 29 2009

Keywords

Crossrefs

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

Programs

  • 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

Formula

From Kevin Ryde, Oct 06 2020: (Start)
a(n) = A163332(A208665(n)), including at n=0 by reckoning A208665(0)=0.
a(n) = 3*A163480(n) + (2 if n odd).
(End)