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.

Showing 1-2 of 2 results.

A118168 a(n) = x for which abs(x^x-n!) is minimal.

Original entry on oeis.org

1, 1, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 14, 15, 16, 17, 18, 18, 19, 20, 21, 22, 22, 23, 24, 25, 26, 27, 27, 28, 29, 30, 31, 32, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 42, 43, 44, 45, 46, 47, 47, 48, 49, 50, 51, 52, 52, 53, 54, 55, 56, 57, 57, 58, 59
Offset: 0

Views

Author

Olaf Voß, Apr 13 2006

Keywords

Examples

			3! = 6, the closest x^x can get to 6 is 2^2, so a(3) = 2
		

Crossrefs

A118169 Minimum values of abs(n^n-x!) for given n.

Original entry on oeis.org

0, 0, 2, 3, 136, 1915, 6336, 460663, 13148416, 91581111, 3772979200, 198133379411, 7608426080256, 52812321503747, 4709633119830016, 316248789972027375, 16013842065532911616, 296760465891270915823, 13494391336411560935424
Offset: 0

Views

Author

Olaf Voß, Apr 13 2006

Keywords

Examples

			3^3 = 27, the closest x! can get to 27 is 4! = 24, so a(3) = 3^3 - 4! = 3
		

Crossrefs

Programs

  • Mathematica
    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 *)
Showing 1-2 of 2 results.