OFFSET
1,1
EXAMPLE
For n=10, 108 is the smallest positive integer for which there exists exactly 10 smaller integers whose digit sum in base 10 is the same as the digit sum of 108 (i.e., 1+0+8=9). These integers are 9, 18, 27, 36, 45, 54, 63, 72, 81, 90.
PROG
(PARI) isok(k, n) = {my(v=vector(k, j, sumdigits(j))); #select(x->(x==v[k]), v) == n+1; }
a(n) = {my(k=1); while(! isok(k, n), k++); k; } \\ Michel Marcus, Feb 16 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Arnauld Chevallier, Feb 06 2020
STATUS
approved