login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A118167
Minimum values of abs(x^x-n!) for given n.
2
0, 0, 1, 2, 3, 93, 464, 1915, 6336, 316224, 2805257, 23139584, 91581111, 3772979200, 77178291200, 1022362697389, 12006689439744, 52812321503747, 4709633119830016, 110533093583273984, 1995008117795780625
OFFSET
0,4
EXAMPLE
3! = 6, the closest x^x can get to 6 is 2^2, so a(3) = 3! - 2^2 = 2
CROSSREFS
Sequence in context: A356796 A356786 A002983 * A291932 A247652 A132499
KEYWORD
easy,nonn
AUTHOR
Olaf Voß, Apr 13 2006
STATUS
approved