OFFSET
1,3
COMMENTS
a(n) = 0 iff 2n+1 is prime and 2n+3 is prime; a(n) = (n+1)*(2n+1) iff 2n+1 is prime and 2n+3 is composite; a(n) = (n+1)*(2n+3) iff 2n+1 is composite and 2n+3 is prime; a(n) = 1 iff 2n+1 is composite and 2n+3 is composite.
EXAMPLE
a(2) = (4!+1)*(6!+1) mod (5*7) = 18025 mod 35 = 0, thus 2*2+1 = 5 and 2*2+3 = 7 are primes.
MATHEMATICA
Table[Mod[((2n)! + 1)*((2n + 2)! + 1), (2n + 1)*(2n + 3)], {n, 1, 50}] (* Stefan Steinerberger, Jul 22 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Franz Vrabec, Jun 27 2006
EXTENSIONS
More terms from Stefan Steinerberger, Jul 22 2006
STATUS
approved