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.

A161785 Numbers k that are in the range of both Euler's phi function and the sigma function.

Original entry on oeis.org

1, 4, 6, 8, 12, 18, 20, 24, 28, 30, 32, 36, 40, 42, 44, 48, 54, 56, 60, 72, 78, 80, 84, 96, 102, 104, 108, 110, 112, 120, 126, 128, 132, 138, 140, 144, 150, 156, 160, 162, 164, 168, 176, 180, 192, 198, 200, 204, 210, 212, 216, 222, 224, 228, 240, 252, 256, 260
Offset: 1

Views

Author

T. D. Noe, Jun 19 2009

Keywords

Comments

That is, for each k there exist x and y such that k = phi(x) = sigma(y). Sigma is the sum of divisors function. Ford, Luca, and Pomerance prove that this sequence is infinite.

References

  • R. K. Guy, Unsolved Problems in Number Theory, B38.

Programs

  • Mathematica
    Intersection[EulerPhi[Range[9660]], DivisorSigma[1,Range[2112]]]
  • PARI
    list(lim)={
       my(u=vector(lim\=1,k,sigma(k)),v=vector(if(lim>63,3*lim*log(log(lim))\1,210),k,eulerphi(k)));
        select(n->n<=lim,setintersect(vecsort(v,,8),vecsort(u,,8)))
    }; \\ Charles R Greathouse IV, Feb 05 2013

Formula

Intersection of A002202 and A002191.