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!)
A356384 For any n >= 0, let x_n(1) = n, and for any b > 1, x_n(b) = x_n(b-1) minus the sum of digits of x_n(b-1) in base b; a(n) is the least b such that x_n(b) = 0. 3
1, 2, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
This sequence is well defined: for any n >= 0: if x_n(b) > 0, then x_n(b+1) < x_n(b), and we must eventually reach 0.
This sequence is weakly increasing; this is related to the fact that for any base b > 1, k -> (k minus the sum of digits of k in base b) is weakly increasing.
Note that some values (like 7) do not appear in this sequence (see also A356386).
LINKS
Rémy Sigrist, Colored scatterplot of (n, x_n(b)) for n <= 1000 and b = 1..a(n) (the color is function of b)
Rémy Sigrist, PARI program
EXAMPLE
For n = 42:
- we have:
b x(b)
- ----
1 42
2 39
3 36
4 33
5 28
6 20
7 12
8 7
9 0
- so a(42) = 9.
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A348020 A070941 A061775 * A225634 A247134 A080604
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 05 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 June 6 04:28 EDT 2024. Contains 373115 sequences. (Running on oeis4.)