OFFSET
1,5
COMMENTS
LINKS
Hans Havermann, Table of n, a(n) for n = 1..2000
EXAMPLE
For n=4, the possible m are -1 (24-1) and +5 (24+5). The former is closer to 4! so a(4) is -1.
For n=5, the possible m are -7 (120-7) and +7 (120+7). Being equidistant to 5!, a(5) is +7.
CROSSREFS
KEYWORD
sign
AUTHOR
Labos Elemer, Feb 10 2000
EXTENSIONS
Edited by Hans Havermann, Jul 23 2014
STATUS
approved