OFFSET
1,1
FORMULA
a(n) = min{k>n: A007953(k) = n}.
EXAMPLE
a(4)=13 because the sums of digits of the candidates 5 to 12 are all different from n=4, and 13 is the first candidate with sum 1+3 = n = 4.
MATHEMATICA
dsn[n_]:=Module[{k=n+1}, While[Total[IntegerDigits[k]]!=n, k++]; k]; Array[ dsn, 50] (* Harvey P. Dale, Oct 24 2020 *)
PROG
(PARI) a(n) = my(m = n+1); while(sumdigits(m) != n, m++); m; \\ Michel Marcus, Jun 08 2014
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Enoch Haga, Jun 13 2009
EXTENSIONS
More precise definition from R. J. Mathar, Aug 30 2010
STATUS
approved
