OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n=1..1000
EXAMPLE
14 < (1*4)*(1+4) = 20, so 14 is a term of this sequence.
For n=199, (1+9+9)*1*9*9 = 1539 > 199, so 199 is here.
MATHEMATICA
asum[x_] := Apply[Plus, IntegerDigits[x]] apro[x_] := Apply[Times, IntegerDigits[x]] sz[x_] := asu[x]*apro[x] Do[s=sz[n]; If[Greater[s, n], Print[n]], {n, 1, 200}]
PROG
(ARIBAS): function a066311(a, b: integer); var n, k, j, p, d: integer; s: string; begin for n := a to b do s := itoa(n); k := 0; p := 1; for j := 0 to length(s) - 1 do d := atoi(s[j..j]); k := k + d; p := p*d; end; if n < p*k then write(n, ", "); end; end; end; a066311(0, 120).
(PARI) isok(m) = my(d=digits(m)); m < vecprod(d)*vecsum(d); \\ Michel Marcus, Mar 23 2020
CROSSREFS
KEYWORD
base,nonn,fini
AUTHOR
Labos Elemer and Klaus Brockhaus, Dec 13 2001
STATUS
approved