OFFSET
1,1
COMMENTS
This sequence is interesting because of the conjecture associated with A230514.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 2 since 2*3 - 1 = 5 is a Sophie Germain prime.
a(2) = 3 since 3*4 - 1 = 11 is a Sophie Germain prime.
a(3) = 5 since 5*6 - 1 = 29 is a Sophie Germain prime but 4*5 - 1 = 19 is not.
MATHEMATICA
q[n_]:=PrimeQ[n(n+1)-1]&&PrimeQ[2n(n+1)-1]
m=0
Do[If[q[n], m=m+1; Print[m, " ", n]], {n, 1, 506}]
Select[Range[600], AllTrue[{#^2+#-1, 2#^2+2#-1}, PrimeQ]&] (* Harvey P. Dale, Dec 02 2021 *)
PROG
(Magma) [n: n in [1..600] | IsPrime(n*(n+1)-1) and IsPrime(2*n*(n+1)-1)]; // Bruno Berselli, Oct 22 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Oct 21 2013
STATUS
approved