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, Table of n, a(n) for n = 0..10000
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
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 05 2022
STATUS
approved