OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
14 is in the sequence because 14 == 4 (mod 5).
MATHEMATICA
Select[Range[2000], Mod[ # - Apply[Times, IntegerDigits[[ # ]]], Apply[Plus, IntegerDigits[[ # ]]]] == 0 &]
PROG
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } ProdD(x)= { local(p=1); while (x>9 && p>0, p*=(x-10*(x\10)); x\=10); return(p*x) } { n=0; for (m=1, 10^9, p=ProdD(m); s=SumD(m); if ((m - p)%s == 0, write("b065448.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 19 2009
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Santi Spadaro, Nov 18 2001
STATUS
approved