OFFSET
1,6
COMMENTS
a(n) appears to be nonzero for n > 2.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
EXAMPLE
sigma(6) = 12 and phi(6) = 2. There are 4 primes between 12 and 2 (endpoints are excluded), namely 3, 5, 7, 11. Hence a(6) = 4.
MATHEMATICA
(*gives number of primes < n*) f[n_] := Module[{r, i}, r = 0; i = 1; While[Prime[i] < n, i++ ]; i - 1]; (*gives number of primes between m and n with endpoints excluded*) g[m_, n_] := Module[{r}, r = f[m] - f[n]; If[PrimeQ[m], r = r - 1]; If[PrimeQ[n], r = r - 1]; r]; Table[g[DivisorSigma[1, n], EulerPhi[n]], {n, 1, 100}]
PROG
(PARI) A074393(n) = if(n<=2, 0, my(s=sigma(n)); ((primepi(s-1)-primepi(eulerphi(n)))-isprime(s))); \\ Antti Karttunen, Jan 21 2025
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Joseph L. Pe, Sep 24 2002
EXTENSIONS
Name modified to match terms by Sean A. Irvine, Jan 20 2025
STATUS
approved