OFFSET
1,10
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Jason Earls, Some Smarandache-type sequences and problems concerning abundant and deficient numbers, in Smarandache Notions Journal (2004), Vol. 14.1, pp 265-270.
EXAMPLE
a(14) = 10 because 2*7 = 14 and 4 + 6 = 10.
MAPLE
with(numtheory): a:=proc(n) local nf, nnf, s, j: nf:=factorset(n): nnf:=nops(nf): s:=0: for j from nf[1] to nf[nnf] do if isprime(j)=false then s:=s+j else s:=s: fi: od: s: end: 0, seq(a(n), n=2..84); # Emeric Deutsch
MATHEMATICA
sc[n_]:=Module[{pfacs=Transpose[FactorInteger[n]][[1]], a, b}, a=Min[ pfacs]+1; b=Max[pfacs]-1; Total[Select[Range[a, b], !PrimeQ[#]&]]]; Array[sc, 90] (* Harvey P. Dale, Nov 14 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Sep 15 2002
STATUS
approved