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.

A242787 Numbers n such that (n^n-2)/(n-2) is an integer.

Original entry on oeis.org

1, 3, 4, 5, 16, 17, 37, 121, 257, 436, 457, 1297, 2116, 2557, 2705, 3817, 3857, 4357, 5545, 6481, 7876, 8009, 9217, 10441, 10621, 11953, 16213, 20896, 22897, 23437, 26321, 26797, 27841, 28681, 35209, 43057, 44101, 47521, 47881, 49204, 49681, 51121, 57241, 61921, 62569
Offset: 1

Views

Author

Derek Orr, May 22 2014

Keywords

Comments

If m is a nonnegative integer then 2^(2^m)+1 is in the sequence. This implies the sequence is infinite. - Jahangeer Kholdi, Dec 06 2014

Examples

			(5^5-2)/(5-2) = 3123/3 = 1041 is an integer. Thus 5 is a member of this sequence.
		

Programs

  • PARI
    for(n=1,10^6,if(n!=2,s=(n^n-2)/(n-2);if(floor(s)==s,print(n))))