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.

A003275 Values of phi(k) when phi(k) = phi(k+1).

Original entry on oeis.org

1, 2, 8, 48, 80, 96, 128, 240, 288, 480, 1008, 1200, 1296, 1440, 1728, 2592, 2592, 4800, 5600, 6480, 8640, 11040, 12480, 14976, 19008, 19200, 22464, 24320, 24576, 21120, 28416, 27840, 25920, 32000, 32768, 36000, 47520, 52992, 60480, 59904, 79200, 89280, 96768
Offset: 1

Views

Author

Keywords

Comments

In other words, consider k = 1,2,3,4,..., and if phi(k) = phi(k+1), add phi(k) to the sequence.

References

  • Richard K. Guy, Unsolved Problems in Number Theory, 3rd Edition, Springer, 2004, Section B36, pp. 138-142.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Programs

  • Haskell
    a003275 = a000010 . fromIntegral . a001274
    -- Reinhard Zumkeller, May 20 2014
    
  • Mathematica
    Cases[Split[Table[EulerPhi[k],{k,1,50000}]],{,}][[1;;27,1]] (* Jean-François Alcover, Mar 20 2011 *)
    #[[1]]&/@Select[Partition[EulerPhi[Range[80000]],2,1],#[[1]]==#[[2]]&] (* Harvey P. Dale, Oct 03 2012 *)
    SequenceCases[EulerPhi[Range[200000]],{x_,x_}][[All,1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 05 2019 *)
  • PARI
    lista(lim) = my(p1 = 1, p2); for(k = 2, lim, p2 = eulerphi(k); if(p1 == p2, print1(p1, ", ")); p1 = p2); \\ Amiram Eldar, Nov 27 2024

Formula

a(n) = A000010(A001274(n)). - Reinhard Zumkeller, May 20 2014