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.

A289828 a(n) is the least k such that phi(k) = n*phi(n).

Original entry on oeis.org

1, 3, 7, 15, 25, 13, 43, 51, 81, 41, 121, 65, 157, 129, 143, 255, 289, 109, 361, 187, 301, 253, 529, 193, 625, 313, 487, 337, 841, 241, 961, 771, 661, 685, 899, 433, 1369, 1083, 937, 641, 1681, 551, 1849, 881, 1147, 1013, 2209, 769, 2401, 1111, 1751, 1249, 2809, 1141, 2323, 1469, 2053, 1711
Offset: 1

Views

Author

Altug Alkan, Aug 13 2017

Keywords

Crossrefs

Programs

  • Mathematica
    With[{s = EulerPhi /@ Range[10^4]}, Table[First@ FirstPosition[s, n EulerPhi@ n], {n, 58}]] (* Michael De Vlieger, Aug 14 2017 *)
  • PARI
    a(n) = my(k=1); while(1, if(eulerphi(k)==n*eulerphi(n), return(k)); k++) \\ Felix Fröhlich, Aug 14 2017
    
  • PARI
    a(n) = invphiMin(n * eulerphi(n)); \\ Amiram Eldar, Nov 15 2024, using Max Alekseyev's invphi.gp

Formula

a(n) = A015126(n^2).
n^2/log log n << a(n) <= n^2. More specifically (on the lower bound), a(n) > n^2(e^-gamma + o(1))/log log n. - Charles R Greathouse IV, Aug 14 2017