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.
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
Offset: 0
Examples
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.
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
Programs
-
PARI
See Links section.
Comments