OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..2000 from Harvey P. Dale)
EXAMPLE
1122 = 2*3*11*17 and 1122 is divisible by 2+3+11+17 = 33.
MAPLE
with(numtheory): P:=proc(q) local a, k, n; for n from 2 to q do
if issqrfree(n) and not isprime(n) then a:=ifactors(n)[2];
if type(n/add(a[k][1], k=1..nops(a)), integer) then print(n); fi;
fi; od; end: P(10^9); # Paolo P. Lava, Sep 19 2014
MATHEMATICA
Select[Range[2, 20000], PrimeQ[ # ] == False && Union[Transpose[FactorInteger[ # ]][[2]]] == {1} && Mod[ #, Plus @@ Transpose[FactorInteger[ # ]][[1]]] == 0 &]
pdpQ[n_]:=Module[{fi=Transpose[FactorInteger[n]]}, !PrimeQ[n]&&Max[fi[[2]]] == 1&&Divisible[n, Total[fi[[1]]]]]; Select[Range[2, 50000], pdpQ] (* Harvey P. Dale, Oct 16 2013 *)
PROG
(PARI) lista(nn) = {forcomposite(n=1, nn, f = factor(n); nbp = #f~; if ((vecmax(f[, 2]) == 1) && !(n % sum(i=1, nbp, f[i, 1])), print1(n, ", ")); ); } \\ Michel Marcus, Sep 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanya Khovanova, Sep 08 2007
STATUS
approved