OFFSET
1,1
COMMENTS
This sequence consists of 147 primes, of which 74 are distinct and 73 are duplicates of earlier terms.
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..147
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,1,-2,1).
FORMULA
a(4n+1) = 4*n^2 - 146*n + 1373,
a(4n+2) = 4*n^2 - 144*n + 1459,
a(4n+3) = 4*n^2 - 142*n + 1301,
a(4n+4) = 4*n^2 - 140*n + 1877.
a(n) = n^2/4 - 37*n + O(1). - Charles R Greathouse IV, Jun 03 2026
MATHEMATICA
LinearRecurrence[{2, -1, 0, 1, -2, 1}, {1373, 1459, 1301, 1877, 1231, 1319}, 50] (* Harvey P. Dale, Jun 17 2025 *)
PROG
(PARI) a(n)=(n^2-148*n+[8084, 5639, 6128, 5639][n%4+1])/4 \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
nonn,fini,full,less,easy
AUTHOR
Aldrich Stevens (aldrichstevens(AT)msn.com), Jun 04 2008
EXTENSIONS
Edited by Charles R Greathouse IV, Nov 03 2009
More terms from Jinyuan Wang, Jun 20 2021
Edited by Sean A. Irvine, Apr 08 2026
STATUS
approved
