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.

A177404 Numbers n such that n^2 minus (sum of the squares of the proper divisors of n) is a prime number.

Original entry on oeis.org

2, 4, 8, 9, 18, 25, 32, 49, 64, 72, 81, 100, 121, 162, 242, 256, 289, 361, 392, 400, 484, 512, 529, 576, 648, 729, 784, 1058, 1296, 1352, 1444, 1681, 1849, 1922, 2048, 2116, 2500, 3136, 3872, 4418, 4608, 4624, 5184, 5776, 5832, 6889, 7225, 7396, 7744
Offset: 1

Views

Author

Claudio Meller, Dec 10 2010

Keywords

Comments

Sum of squares of proper divisors of n is given by A067558.

Examples

			9 has proper divisors 3 and 1; it is in the list because 9^2-(3^2+1^2) = 71 is a prime number.
		

Crossrefs

Cf. A067558.

Programs

  • Magma
    a067558:=func< n | n le 1 select 0 else &+[ D[k]^2: k in [1..#D-1] ] where D is Divisors(n) >; [ n: n in [1..10000] | IsPrime(n^2-a067558(n)) ];
  • Mathematica
    Select[Range[8000],PrimeQ[#^2-Total[Most[Divisors[#]]^2]]&] (* Harvey P. Dale, Dec 14 2011 *)