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 A118169 #4 Jan 02 2016 12:12:41 %S A118169 0,0,2,3,136,1915,6336,460663,13148416,91581111,3772979200, %T A118169 198133379411,7608426080256,52812321503747,4709633119830016, %U A118169 316248789972027375,16013842065532911616,296760465891270915823,13494391336411560935424 %N A118169 Minimum values of abs(n^n-x!) for given n. %e A118169 3^3 = 27, the closest x! can get to 27 is 4! = 24, so a(3) = 3^3 - 4! = 3 %t A118169 Join[{0,0},With[{fc=Range[200]!},Drop[Flatten[Table[Abs[n^n-Nearest[ fc,n^n]],{n,18}]],2]]] (* _Harvey P. Dale_, Jan 02 2016 *) %Y A118169 Cf. A118167, A118170. %K A118169 easy,nonn %O A118169 0,3 %A A118169 _Olaf Voß_, Apr 13 2006