OFFSET
1,2
COMMENTS
The sequence is a permutation of the natural numbers:
- we can always extend the sequence with a power of 10 that has not yet appeared,
- every power of 10 appears in the sequence,
- for any n > 0 with digital sum s: n can appear after any number of the form 10^k with k+1 >= s, hence n will eventually appear.
LINKS
EXAMPLE
The first terms, alongside the corresponding digits and sum of digits, are:
n a(n) k d(k) s(k)
-- ---- -- ---- ----
1 1 1 1 1
2 10 2 1 2
3 0 2
3 2 4 2 4
4 11 5 1 5
6 1 6
5 100 7 1 7
8 0 7
9 0 7
6 3 10 3 10
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Sep 22 2019
STATUS
approved