login
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
OFFSET
0,4
COMMENTS
The best approximation can be smaller or larger than n!; that is, minimize abs(n!-r^s).
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
KEYWORD
sign
AUTHOR
Sean A. Irvine, Mar 26 2021
STATUS
approved