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.
%I A242787 #16 Dec 10 2014 18:07:32 %S A242787 1,3,4,5,16,17,37,121,257,436,457,1297,2116,2557,2705,3817,3857,4357, %T A242787 5545,6481,7876,8009,9217,10441,10621,11953,16213,20896,22897,23437, %U A242787 26321,26797,27841,28681,35209,43057,44101,47521,47881,49204,49681,51121,57241,61921,62569 %N A242787 Numbers n such that (n^n-2)/(n-2) is an integer. %C A242787 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 %e A242787 (5^5-2)/(5-2) = 3123/3 = 1041 is an integer. Thus 5 is a member of this sequence. %o A242787 (PARI) for(n=1,10^6,if(n!=2,s=(n^n-2)/(n-2);if(floor(s)==s,print(n)))) %K A242787 nonn %O A242787 1,2 %A A242787 _Derek Orr_, May 22 2014