OFFSET
1,1
COMMENTS
The primes occur at n = 1, 7, 8, 10, 11, 14, 17, 18, 30, 39, 46, 50, 57,..
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p=648*n^2-72*n+1; If[PrimeQ[p], AppendTo[lst, p]], {n, 0, 5*5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jan 27 2009 *)
Select[Table[648n^2-72n+1, {n, 0, 6001}], PrimeQ] (* Vincenzo Librandi, Jul 23 2012 *)
PROG
(Magma) [a: n in [0..200] | IsPrime(a) where a is 648*n^2-72*n+1]; // Vincenzo Librandi, Jul 23 2012
(PARI) select(isprime, vector(6002, n, 648*(n-1)^2 - 72*(n-1) + 1)) \\ Robert C. Lyons, Feb 27 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 11 2009
EXTENSIONS
Incorrect formula replaced with a comment by R. J. Mathar, Jul 06 2010
STATUS
approved
