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!)
A242569 n!-2n. 1
-1, -2, 0, 16, 110, 708, 5026, 40304, 362862, 3628780, 39916778, 479001576, 6227020774, 87178291172, 1307674367970, 20922789887968, 355687428095966, 6402373705727964, 121645100408831962, 2432902008176639960, 51090942171709439958, 1124000727777607679956, 25852016738884976639954, 620448401733239439359952 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For n > 2, a(n) is the largest value of k such that (n!+k)/(n+k) is an integer.
For n > 2, a(n) is the largest value of k such that (n!+k)/(n+k) is prime.
For n > 1, a(n) is even.
LINKS
FORMULA
a(n) = n!-2n.
EXAMPLE
3!-2*3 = 0 so a(3) = 0.
4!-2*4 = 16 so a(4) = 16.
5!-2*5 = 110 so a(5) = 110.
PROG
(Python)
import math
{print(math.factorial(n)-2*n) for n in range(1, 25)}
(PARI) for(n=1, 25, print(n!-2*n))
CROSSREFS
Sequence in context: A345652 A009528 A178987 * A152154 A324665 A349036
KEYWORD
sign
AUTHOR
Derek Orr, May 17 2014
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 August 18 10:08 EDT 2024. Contains 375264 sequences. (Running on oeis4.)