OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Composite numbers 14 and 15 are in sequence because sigma(14) = sigma(15) = 24.
MAPLE
N:= 500:
Res:= {}: Q:= {}:
for n from 4 to N do
if isprime(n) then next fi;
s:= numtheory:-sigma(n);
if not assigned(V[s]) then
V[s]:= n;
if s > N then Q:= Q union {n} fi;
else
Res:= Res union {n, V[s]};
if s > N then Q:= Q minus {V[s]} fi;
fi
od:
convert(select(`<`, Res, min(Q)), list); # Robert Israel, Dec 17 2017
MATHEMATICA
t2 = Table[If[PrimeQ[n], 0, DivisorSigma[1, n]], {n, 1000}]; Select[Range[132], ! PrimeQ[#] && Length[Position[t2, t2[[#]]]] > 1 &] (* T. D. Noe, Feb 27 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Feb 07 2012
STATUS
approved