OFFSET
1,1
COMMENTS
Every multiple of 10 is a term.
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
118 is a term as 1 + 1 + 8 = 10, 10 > 8 and 8 = 1 * 1 * 8.
MATHEMATICA
Select[Range[170], (Plus @@ IntegerDigits[ # ]) > (Times @@ IntegerDigits[ # ]) &] (Alonso del Arte, May 16 2005)
PROG
(PARI) SumD(x)= { s=0; while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } ProdD(x)= { p=1; while (x>9, p*=(x-10*(x\10)); x\=10); return(p*x) } { n=0; for (a=1, 10^9, if (SumD(a) > ProdD(a), write("b062997.txt", n++, " ", a); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 15 2009
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Amarnath Murthy, Jun 27 2001
EXTENSIONS
Extended by Larry Reeves (larryr(AT)acm.org) and Henry Bottomley, Jun 29 2001
STATUS
approved