OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..1500
EXAMPLE
a(3) = 16 is a term because 16 = 2^4 and 16 - 4*2 = 8 = 2^3.
MAPLE
filter:= proc(n) local x, t;
x:= n - add(t[1]*t[2], t = ifactors(n)[2]);
x > 0 and andmap(t -> t mod 3 = 0, ifactors(x)[2][.., 2]);
end proc:
select(filter, [$1..200000]);
MATHEMATICA
sopfr[k_] := Plus @@ Times @@@ FactorInteger@ k; sopfr[1] = 0; okQ[k_]:=Module[{m=CubeRoot[k-sopfr[k]]}, !PrimeQ[k]&&IntegerQ[m]&&Positive[m]]; Select[Range[170152], okQ] (* James C. McMahon, Oct 27 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Oct 18 2025
STATUS
approved
