OFFSET
1,3
LINKS
Michel Marcus, Table of n, a(n) for n = 1..2000
EXAMPLE
a(5) = 13 because 13 is the smallest number such that sum of digits of all its divisors is equal to 5: 1 + 1 + 3 = 5.
a(2) = a(10) = 0 because there is no number such that sum of digits of all its divisors is equal to 2 or 10.
PROG
(PARI) sdd(n) = sumdiv(n, d, sumdigits(d)); \\ A034690
a(n) = if ((n==2) || (n==10), return (0)); my(k=1); while (sdd(k) != n, k++); k; \\ Michel Marcus, Oct 06 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Jun 15 2011
STATUS
approved