OFFSET
1,1
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..1000
EXAMPLE
n = pqrs, p<q<r<s, p+q+r+s = ks; n = 6279 = 3*7*13*23, sum = 3+7+13+23 = 2*23
MATHEMATICA
ffi[x_] := Flatten[FactorInteger[x]] lf[x_] := Length[FactorInteger[x]] ba[x_] := Table[Part[ffi[x], 2*w-1], {w, 1, lf[x]}] sb[x_] := Apply[Plus, ba[x]] ma[x_] := Part[Reverse[Flatten[FactorInteger[x]]], 2] amo[x_] := Abs[MoebiusMu[x]] Do[s=sb[n]/ma[n]; If[IntegerQ[s]&&Equal[lf[n], 4]&& !Equal[amo[n], 0], Print[{n, ba[n]}]], {n, 2, 1000000}]
s = {}; Do[Length[f=FactorInteger@n] == 4 && Max[(t = Transpose@f)[[2]]] == 1 && Mod[Plus @@ t[[1]], t[[1, -1]]] == 0 && AppendTo[s, n], {n, 3, 10^6, 2}]; s (* 12 times faster, Giovanni Resta, Apr 10 2013 *)
sdpQ[n_]:=Module[{fi=FactorInteger[n][[All, 1]]}, Divisible[Total[fi], Last[ fi]] &&Length[fi]==4&&SquareFreeQ[n]]; Select[Range[100000], sdpQ] (* Harvey P. Dale, May 01 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 13 2002
EXTENSIONS
Definition clarified by Harvey P. Dale, May 01 2018
STATUS
approved