login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A172367
Numbers k > 0 such that k+4 is a prime.
19
1, 3, 7, 9, 13, 15, 19, 25, 27, 33, 37, 39, 43, 49, 55, 57, 63, 67, 69, 75, 79, 85, 93, 97, 99, 103, 105, 109, 123, 127, 133, 135, 145, 147, 153, 159, 163, 169, 175, 177, 187, 189, 193, 195, 207, 219, 223, 225, 229, 235, 237, 247, 253, 259, 265, 267, 273, 277, 279
OFFSET
1,2
COMMENTS
The subsequence of primes A023200 consists of the smallest primes p of cousin prime pairs (p, p+4), while the subsequence of nonprimes is A164384. - Bernard Schott, Oct 19 2021
LINKS
Sameen Ahmed Khan, Primes in Geometric-Arithmetic Progression, arXiv:1203.2083v1 [math.NT], (Mar 09 2012).
FORMULA
a(n) = prime(n+2) - 4.
EXAMPLE
a(1) = 5 - 4 = 1, a(2) = 7 - 4 = 3.
MATHEMATICA
Table[Prime[n]-4, {n, 3, 53}] (* Charles R Greathouse IV, Mar 12 2012 *)
PROG
(PARI) a(n)=prime(n+2)-4 \\ Charles R Greathouse IV, Mar 12 2012
CROSSREFS
Union of A023200 and A164384.
Sequence in context: A111225 A032678 A073671 * A336234 A024901 A258011
KEYWORD
nonn,easy
AUTHOR
STATUS
approved