OFFSET
1,1
COMMENTS
If n is divisible by a prime larger than 7, then n can't divide prod(m), so a(n)=0. Are there any other values of n with a(n)=0?
EXAMPLE
a(2)=347 because prod(347)=84, sum(347)=14, length(347)=3, n=2 and 84=2*3*14.
MATHEMATICA
id := IntegerDigits; prod[n_] := Times@@id[n]; l[n_] := Length[id[n]]; sum[n_] := Plus@@id[n]; a[n_] := If[FactorInteger[2n][[ -1, 1]]>7, 0, For[k=1, True, k++, m=Prime[k]; If[prod[m]==n*l[m]sum[m], Return[m]]]]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Felice Russo, Sep 18 2001
EXTENSIONS
Edited by Dean Hickerson, Jun 02 2002
STATUS
approved