login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A342849 Value of n!-r^s in best integer approximation r^s to n! with s >= r. 2
0, 0, 1, 2, -3, -8, -9, 944, -6336, -27745, -565504, -436807, -57869312, 123505175, -6964887627, 208162740224, 1849303559875, -24062405487241, 843313139172477, -9976603433435136, 127058998962946048, -10068148276705106291, -56590892939803623424 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

COMMENTS

The best approximation can be smaller or larger than n!; that is, minimize abs(n!-r^s).

LINKS

Table of n, a(n) for n=0..22.

EXAMPLE

a(4) = 3, since 3^3 - 3 = 24 = 4! (note 5^2-1 = 24 is not allowed because 2 < 5).

a(7) = 944, since 4^6 + 944 = 5040 = 7! and there is no closer approximation.

CROSSREFS

Cf. A342847, A342848, A045772, A045773.

Sequence in context: A087034 A133165 A019307 * A247580 A028742 A028771

Adjacent sequences:  A342846 A342847 A342848 * A342850 A342851 A342852

KEYWORD

sign

AUTHOR

Sean A. Irvine, Mar 26 2021

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 14:47 EDT 2021. Contains 343860 sequences. (Running on oeis4.)