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!)
A338835 a(n) is the greatest number not yet in the sequence with the same number of digits and the same sum of digits as n in primorial base. 3
0, 1, 2, 4, 3, 5, 6, 12, 8, 18, 14, 24, 7, 13, 10, 20, 19, 26, 9, 16, 15, 25, 22, 28, 11, 21, 17, 27, 23, 29, 30, 60, 36, 90, 66, 120, 32, 62, 61, 96, 92, 150, 42, 91, 72, 126, 122, 180, 68, 121, 102, 156, 152, 186, 98, 151, 132, 182, 181, 192, 31, 38, 37, 67 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

This sequence is a self-inverse permutation of the nonnegative integers.

LINKS

Rémy Sigrist, Table of n, a(n) for n = 0..2309

Rémy Sigrist, Colored scatterplot of the first 2*3*5*7*11*13 terms (where the color is function of A276150(n))

Rémy Sigrist, PARI program for A338835

Index entries for sequences that are permutations of the natural numbers

FORMULA

A235224(a(n)) = A235224(n).

A276150(a(n)) = A276150(n).

EXAMPLE

For n = 8:

- the numbers with 3 digits and sum of digits 2 in primorial base are: 7 ("101"), 8 ("110") and 12 ("200"),

- so a(7) = 12,

     a(8) = 8,

     a(12) = 7.

PROG

(PARI) See Links section.

CROSSREFS

Cf. A235224, A276150, A333658, A338829 (decimal analog), A338834 (factorial base analog).

Sequence in context: A086433 A102568 A338834 * A210536 A102767 A336640

Adjacent sequences:  A338832 A338833 A338834 * A338836 A338837 A338838

KEYWORD

nonn,base

AUTHOR

Rémy Sigrist, Nov 11 2020

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 21 03:31 EDT 2022. Contains 353887 sequences. (Running on oeis4.)