OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..139 (terms 1..60 from Harry J. Smith)
FORMULA
EXAMPLE
a(6) = 110 since 6! + 1 = 721 = 7 * 103 and 7 + 103 = 110.
MATHEMATICA
sopf[n_] := Plus @@ First @ Transpose @ FactorInteger[n]; sopf /@ Table[n! + 1 , {n, 1, 23}] (* Amiram Eldar, Feb 03 2020 *)
PROG
(PARI) sopf(n, s, fac, i)=fac=factor(n); for(i=1, matsize(fac)[1], s=s+fac[i, 1]); return(s);
for(n=1, 23, print(sopf(n!+1)))
(PARI) sopf(n)= { local(f, s=0); f=factor(n); for(i=1, matsize(f)[1], s+=f[i, 1]); return(s) }
{ for (n=1, 60, write("b064011.txt", n, " ", sopf(n! + 1)) ) } \\ Harry J. Smith, Sep 06 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Sep 07 2001
STATUS
approved