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.

A007374 Smallest k such that phi(x) = k has exactly n solutions, n>=2.

Original entry on oeis.org

1, 2, 4, 8, 12, 32, 36, 40, 24, 48, 160, 396, 2268, 704, 312, 72, 336, 216, 936, 144, 624, 1056, 1760, 360, 2560, 384, 288, 1320, 3696, 240, 768, 9000, 432, 7128, 4200, 480, 576, 1296, 1200, 15936, 3312, 3072, 3240, 864, 3120, 7344, 3888, 720, 1680, 4992
Offset: 2

Views

Author

Keywords

Comments

The Carmichael Totient Conjecture is that there is no k such that phi(x) = k has a unique solution x. So a(1) does not exist.
Ford proved that a(n) exists for all n > 1. - Charles R Greathouse IV, Oct 13 2014

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 840.
  • Wacław Sierpiński, Elementary Theory of Numbers, p. 234, Warsaw, 1964.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Essentially same as A014573. Records in A105207, A105208.

Programs

  • Mathematica
    a = Table[ 0, {10^5} ]; Do[ s = EulerPhi[ n ]; If[ s < 100001, a[ [ s ] ]++ ], {n, 1, 10^6} ]; Do[ k = 1; While[ a[ [ k ] ] != n, k++ ]; Print[ k ], {n, 2, 75} ]
  • PARI
    v=vectorsmall(10^6);for(n=1,1e7,t=eulerphi(n);if(t<=#v,v[t]++))
    u=vector(100);for(i=1,#v,t=v[i];if(t&&t<=#u&&u[t]==0,u[t]=i)); u[2..#u]
    \\ Charles R Greathouse IV, Oct 13 2014