OFFSET
1,2
COMMENTS
Numbers k such that the sum of k and the cubes of the prime factors of k, counted with multiplicity, is a square.
LINKS
Robert Israel, Table of n, a(n) for n = 1..3000
EXAMPLE
a(3) = 270 = 2 * 3^3 * 5 is a term because 270 + 2^3 + 3 * 3^3 + 5^3 = 484 = 22^2 is a square.
MAPLE
filter:= proc(n) local t;
issqr(n + add(t[1]^3*t[2], t=ifactors(n)[2]))
end proc:
select(filter, [$1..10^6]);
MATHEMATICA
lim=184000; f[{p_, e_}]:=e*p^3; a224787[k_]:=If[k==1, 0, Total[f/@FactorInteger[k]]]; q[k_]:=IntegerQ[Sqrt[k+a224787[k]]]; Select[Range[lim], q[#]&] (* James C. McMahon, Jul 30 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Jul 27 2025
STATUS
approved
