login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A092590
a(n) = A065395(A000040(n)); values of commutator of sigma and phi function at prime number arguments.
2
-1, 1, 5, 8, 14, 22, 25, 31, 28, 48, 56, 73, 78, 76, 56, 80, 74, 138, 112, 120, 159, 136, 102, 156, 210, 185, 168, 126, 240, 212, 248, 212, 226, 240, 226, 300, 314, 283, 204, 252, 222, 474, 296, 412, 339, 388, 472, 360, 270, 472, 378, 368, 634, 396, 427, 316, 404, 592, 534, 628, 436, 434, 582, 480, 684, 456, 700, 836
OFFSET
1,3
COMMENTS
The sequence differs from A065394 since it is not monotonic.
LINKS
FORMULA
a(n) = sigma(prime(n)-1) - phi(prime(n)+1) = A008332(n) - A008331(n). - Amiram Eldar, Jun 09 2024
EXAMPLE
a(1) = sigma(phi(2))- phi(sigma(2)) = sigma(1)-phi(3) = 1-2 = -1.
MATHEMATICA
Table[DivisorSigma[1, p-1] - EulerPhi[p+1], {p, Prime[Range[100]]}] (* Amiram Eldar, Jun 09 2024 *)
PROG
(Magma) [DivisorSigma(1, EulerPhi(p))-EulerPhi(DivisorSigma(1, p)): p in PrimesUpTo(400)]; // Bruno Berselli, Oct 20 2015
KEYWORD
sign,look
AUTHOR
Labos Elemer, Mar 03 2004
STATUS
approved