login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A372113 Numbers k for which (k-1)/2 and 2*k+1 are both primes. 1
5, 11, 15, 23, 35, 39, 63, 75, 83, 95, 119, 135, 179, 215, 219, 299, 303, 315, 359, 363, 455, 459, 483, 515, 543, 615, 663, 699, 719, 735, 779, 803, 879, 915, 923, 935, 975, 999, 1019, 1043, 1143, 1155, 1175, 1199, 1295, 1323, 1355, 1383, 1439, 1539, 1595, 1659, 1679, 1755, 1763, 1815, 1859, 1883 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Intersection of A072055 and A104635.
LINKS
FORMULA
a(n) = 2*A023213(n) + 1.
a(n) = (A126330(n)-1)/2.
EXAMPLE
5 is a term because (5-1)/2 = 2 is prime and 2*5+1 = 11 is prime.
MATHEMATICA
Select[Range[1, 2000, 2], AllTrue[{(# - 1)/2, 2 # + 1}, PrimeQ] &] (* Michael De Vlieger, Apr 19 2024 *)
PROG
(Python)
from sympy import isprime
def a(n): return n%2 == 1 and isprime((n-1)>>1) and isprime(2*n+1)
print([n for n in range(2, 1900) if a(n)])
CROSSREFS
Sequence in context: A314077 A314078 A314079 * A137009 A340131 A290199
KEYWORD
nonn
AUTHOR
Alexandre Herrera, Apr 19 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 11 04:34 EDT 2024. Contains 374216 sequences. (Running on oeis4.)