OFFSET
1,1
COMMENTS
Do we have a(n) ~ c*n where c ~= 700? - David A. Corneth, Sep 23 2019
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10046 (first 8577 terms from Robert Israel, terms <= 7*10^6)
Max Alekseyev, PARI/GP Scripts for Miscellaneous Math Problems (invphi.gp).
EXAMPLE
360 = sigma(120) = sigma(174) = sigma(184) = sigma(190) = sigma(267) = sigma(295) = sigma(319) = sigma(323) = sigma(359).
MAPLE
N:= 60000: # to get terms <= N
V:= Vector(N):
for k from 1 to N-1 do
t:= numtheory:-sigma(k);
if t <= N then V[t]:= V[t]+1 fi
od:
select(t -> V[t]=9, [$1..N]); # Robert Israel, Sep 22 2019
MATHEMATICA
a = Table[ 0, {20000} ]; Do[ s = DivisorSigma[ 1, n ]; If[ s < 20001, a[ [ s ] ]++ ], {n, 1, 20000} ]; Select[ Range[ 20000 ], a[ [ # ] ] == 9 & ]
PROG
(PARI) upto(n) = {my(v = vecsort(vector(n, i, sigma(i))), res = List()); for(i = 2, #v - 9, if(v[i-1] <= n && v[i-1] != v[i] && v[i] == v[i + 8] && v[i] != v[i+9], listput(res, v[i]))); res} \\ David A. Corneth, Sep 23 2019
(PARI) is(k) = invsigmaNum(k) == 9 \\ Amiram Eldar, Nov 18 2024, using Max Alekseyev's invphi.gp
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Robert G. Wilson v, Apr 18 2001
STATUS
approved