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.

A210500 Number of even solutions to phi(k) = prime(n) - 1.

Original entry on oeis.org

1, 2, 3, 2, 1, 4, 5, 2, 1, 1, 1, 5, 6, 2, 1, 1, 1, 5, 1, 1, 11, 1, 1, 4, 13, 2, 1, 1, 5, 4, 1, 1, 1, 1, 1, 1, 4, 2, 1, 1, 1, 5, 1, 17, 1, 1, 1, 1, 1, 1, 4, 1, 21, 1, 9, 1, 1, 1, 5, 5, 1, 1, 1, 1, 10, 1, 1, 13, 1, 3, 9, 1, 1, 1, 1, 1, 1, 7, 9, 4, 1, 7, 1, 23, 1, 1, 9
Offset: 1

Views

Author

Arkadiusz Wesolowski, Jan 19 2013

Keywords

Comments

a(n) >= A210501(n).

Examples

			The set {k: phi(k) = 12} is {13, 21, 26, 28, 36, 42}. Thus, if phi(k) = prime(6) - 1, the equation has exactly four even solutions. Hence, a(6) = 4.
		

References

  • Alexander S. Karpenko, Lukasiewicz's Logics and Prime Numbers, Luniver Press, Beckington, 2006, pp. 52-56.

Crossrefs

Programs

  • Mathematica
    r = 87; lst1 = Table[EulerPhi[n], {n, (Prime[r] - 1)^2 + 2}]; lst2 = {}; Do[p = Prime[n]; AppendTo[lst2, Length@Select[Flatten@Position[Take[lst1, {p - 1, (p - 1)^2 + 2}], Prime[n] - 1], OddQ]], {n, r}]; lst2

Formula

a(n) = A058339(n) - A210501(n).