The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A118169 Minimum values of abs(n^n-x!) for given n. 2
0, 0, 2, 3, 136, 1915, 6336, 460663, 13148416, 91581111, 3772979200, 198133379411, 7608426080256, 52812321503747, 4709633119830016, 316248789972027375, 16013842065532911616, 296760465891270915823, 13494391336411560935424 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
EXAMPLE
3^3 = 27, the closest x! can get to 27 is 4! = 24, so a(3) = 3^3 - 4! = 3
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 *)
CROSSREFS
Sequence in context: A139129 A007608 A010343 * A066908 A057738 A234999
KEYWORD
easy,nonn
AUTHOR
Olaf Voß, Apr 13 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 20:35 EDT 2024. Contains 372555 sequences. (Running on oeis4.)