OFFSET
1,1
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
n = 286 = 2*11*13 has a form of 2pq, where p and q are twin primes;
n = 5414430 = 2*3*5*7*19*23*59, sum = 2+3+5+7+19+23+59 = 118 = 2*59.
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]&&Greater[lf[n], 1]&& !Equal[amo[n], 1], Print[{n, ba[n]}]], {n, 2, 1000000}]
(* Second program: *)
Select[Range@ 45000, Function[n, And[Length@ # > 1, SquareFreeQ@ n, Divisible[Total@ #, Last@ #]] &[FactorInteger[n][[All, 1]] ]]] (* Michael De Vlieger, Jul 18 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 13 2002
STATUS
approved