The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A353829 Inverse permutation to A353828. 2
0, 1, 2, 3, 4, 7, 6, 5, 8, 9, 10, 11, 12, 13, 22, 21, 20, 19, 18, 17, 14, 15, 16, 25, 24, 23, 26, 27, 28, 29, 30, 31, 34, 33, 32, 35, 36, 37, 38, 39, 40, 67, 66, 65, 64, 63, 62, 59, 60, 61, 58, 57, 56, 55, 54, 53, 50, 51, 52, 43, 42, 41, 44, 45, 46, 47, 48, 49 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
EXAMPLE
A353828(7) = 5, so a(5) = 7.
PROG
(PARI) a(n) = {
my (d=[], t, p=1);
while (n, d=concat(t=[0, 1, -1][1+n%3], d); n=(n-t)/3);
for (k=1, #d, if (d[k], p*=d[k]=p*d[k]));
fromdigits(d, 3);
}
CROSSREFS
Cf. A353828.
Sequence in context: A222246 A353828 A321726 * A267299 A077223 A265369
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 08 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 27 16:21 EDT 2024. Contains 372880 sequences. (Running on oeis4.)