OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Amiram Eldar, Table of n, k, a(n) = A078142(k) for n=1..10000
MATHEMATICA
s[n_] := Total[Ceiling[Sqrt[(p = FactorInteger[n][[;; , 1]])]]^2 - p]; seq={}; sm = -1; Do[s1 = s[n]; If[s1 > sm, sm = s1; AppendTo[seq, s1]], {n, 1, 10^4}]; seq (* Amiram Eldar, Dec 08 2019 *)
f[n_]:=Module[{difs=Transpose[FactorInteger[n]][[1]]}, Total[Ceiling[Sqrt[difs]]^2-difs]]; DeleteDuplicates[Array[f, 12000], GreaterEqual] (* Harvey P. Dale, Sep 07 2022 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Nov 21 2002
STATUS
approved