OFFSET
1,1
COMMENTS
The terms n = 1..23 are prime. This is the longest known sequence of 23 primes in arithmetic progression with minimal end known as of August 10, 2015.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Jens Kruse Andersen, All known AP24 to AP26.
Wikipedia, Largest known primes in AP.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 403185216600637 + (n-1)*9523*A002110(9).
G.f.: -x*(401060703199627*x-403185216600637) / (x-1)^2. - Colin Barker, Aug 25 2015
EXAMPLE
a(23) = 403185216600637 + 22*2124513401010 = 449924511422857 is prime.
MATHEMATICA
Table[403185216600637 + (n - 1) 2124513401010, {n, 1, 23}]
PROG
(Sage) [403185216600637+(n-1)*2124513401010 for n in (1..20)]
(Magma) [403185216600637+(n-1)*2124513401010: n in [1..20]];
(PARI) Vec(-x*(401060703199627*x-403185216600637)/(x-1)^2 + O(x^40)) \\ Colin Barker, Aug 25 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Marco Ripà, Aug 10 2015
STATUS
approved