OFFSET
0,3
COMMENTS
The sequence is well defined:
- for any number n with sum of digits d,
- by necessity, d <= n,
- the number k obtained by concatenating n-d 1's in front of d meets the requirements.
LINKS
Rémy Sigrist, Perl program for A344486
FORMULA
a(10 * n) = a(n).
EXAMPLE
For n = 11:
- the sum of digits of 11 is 2,
- the sum of digits of a(n) must equal 1 or 11,
- the numbers whose sum of digits is 1 are the powers of 10,
- 2 cannot be a substring of a power of 10,
- the first number with sum of digits 11 is 29,
- 2 is a substring of 29,
- so a(11) = 29.
PROG
(Perl) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 21 2021
STATUS
approved
