cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A092590 a(n) = A065395(A000040(n)); values of commutator of sigma and phi function at prime number arguments.

Original entry on oeis.org

-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

Views

Author

Labos Elemer, Mar 03 2004

Keywords

Comments

The sequence differs from A065394 since it is not monotonic.

Examples

			a(1) = sigma(phi(2))- phi(sigma(2)) = sigma(1)-phi(3) = 1-2 = -1.
		

Crossrefs

Programs

  • Magma
    [DivisorSigma(1,EulerPhi(p))-EulerPhi(DivisorSigma(1,p)): p in PrimesUpTo(400)]; // Bruno Berselli, Oct 20 2015
  • Mathematica
    Table[DivisorSigma[1, p-1] - EulerPhi[p+1], {p, Prime[Range[100]]}] (* Amiram Eldar, Jun 09 2024 *)

Formula

a(n) = sigma(prime(n)-1) - phi(prime(n)+1) = A008332(n) - A008331(n). - Amiram Eldar, Jun 09 2024