OFFSET
1,1
COMMENTS
3/2 - (-1)^n/2 adds 1 for any even number and 2 for any odd number.
EXAMPLE
5 is a member because 2^2+3/2-1/2=5
MAPLE
P:=proc(n) local i, j; for i from 0 by 1 to n do j:=i^2+3/2-1/2*(-1)^i; if isprime(j) then print(j); fi; od; end: P(200);
MATHEMATICA
Select[Table[n^2+3/2-1/(2(-1)^n), {n, 200}], PrimeQ] (* Harvey P. Dale, Dec 21 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Dec 31 2006
STATUS
approved