OFFSET
1,2
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The digital sum of 312 is 6, and it divides 312; the digital sum of 6 is 6; hence 312 appears in the sequence.
The digital sum of 308 is 11, which divides 308; however the digital sum of 11 is 2, which does not divide 11; hence 308 is not in the sequence.
PROG
(PARI) is(n) = my (d=sumdigits(n)); if (n==d, return (1)); if (n%d, return (0)); return (is(d))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 27 2017
STATUS
approved