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.

A066782 Numbers k such that (k, phi(k)) lies on the hyperbola x^2 - y^2 = m^2, for some natural number m, i.e., k^2 - phi(k)^2 is a square.

Original entry on oeis.org

1, 5, 13, 25, 34, 41, 61, 68, 113, 125, 136, 169, 181, 219, 222, 272, 313, 390, 421, 444, 482, 544, 578, 613, 625, 657, 666, 761, 780, 888, 964, 979, 1013, 1088, 1156, 1170, 1201, 1301, 1332, 1560, 1681, 1741, 1776, 1861
Offset: 1

Views

Author

Joseph L. Pe, Jan 18 2002

Keywords

Examples

			5^2 - phi(5)^2 = 25 - 16 = 3^2, so 5 is a term of the sequence.
		

Crossrefs

Cf. A066763.

Programs

  • Mathematica
    Select[ Range[ 1, 10^4 ], IntegerQ[ Sqrt[ #^2 - EulerPhi[ # ]^2 ] ] & ]
  • PARI
    isok(k) = { issquare(k^2 - eulerphi(k)^2) } \\ Harry J. Smith, Mar 25 2010