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.

A275245 Numbers k such that phi(k) divides k^2 while phi(k) does not divide k.

Original entry on oeis.org

10, 20, 40, 42, 50, 60, 80, 84, 100, 114, 120, 126, 136, 156, 160, 168, 180, 200, 220, 228, 240, 250, 252, 272, 294, 300, 312, 320, 336, 342, 360, 378, 400, 440, 444, 456, 468, 480, 500, 504, 540, 544, 588, 600, 624, 640, 672, 684, 720, 756, 800, 816
Offset: 1

Views

Author

Altug Alkan, Jul 21 2016

Keywords

Examples

			10 is a term because phi(10) = 4; 10 mod 4 = 2 and 10^2 mod 4 = 0.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[10^3], Function[k, And[Divisible[#^2, k], ! Divisible[#, k]]]@ EulerPhi@ # &] (* Michael De Vlieger, Jul 21 2016 *)
  • PARI
    isok(n) = (n % eulerphi(n) != 0) && (n^2 % eulerphi(n) == 0)