OFFSET
1,2
COMMENTS
sigma_1(n) is the sum of the divisors of n [same as sigma(n)] (A000203).
LINKS
Jud McCranie, Table of n, a(n) for n = 1..10000 (first 800 terms from Vincenzo Librandi)
MATHEMATICA
Select[ Array[ DivisorSigma[ 1, # ]/EulerPhi[ # ]&, 20000 ], IntegerQ ]
PROG
(Magma) [ q: n in [1..20000] | r eq 0 where q, r is Quotrem(SumOfDivisors(n), EulerPhi(n)) ]; // Klaus Brockhaus, Nov 09 2008
(Python)
from math import prod
from itertools import count, islice
from sympy import factorint
def A023897_gen(startvalue=1): # generator of terms >= startvalue
for m in count(max(startvalue, 1)):
f = factorint(m)
q, r = divmod(prod(p**(e+2)-p for p, e in f.items()), m*prod((p-1)**2 for p in f))
if not r:
yield q
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved