OFFSET
1,3
COMMENTS
See A352740 for the corresponding k's.
LINKS
EXAMPLE
The first terms, alongside the corresponding k's, are:
n a(n) k's
-- ---- --------------
1 1 0
2 1 0
3 2 0, 2
4 2 0, 3
5 2 0, 4
6 1 0
7 3 0, 4, 6
8 3 0, 6, 7
9 3 0, 7, 8
10 2 0, 8
11 5 0, 6, 8, 9, 10
12 2 0, 11
PROG
(PARI) a(n) = { my (v=0); for (k=0, n-1, my (ok=1); for (b=2, max(2, n+1), if (sumdigits(n, b)==sumdigits(k, b), ok=0; break)); v+=ok); v }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 28 2022
STATUS
approved