login
A169606
a(2n-1) = prime(n+2)-3, a(2n) = prime(n+2)-2.
2
2, 3, 4, 5, 8, 9, 10, 11, 14, 15, 16, 17, 20, 21, 26, 27, 28, 29, 34, 35, 38, 39, 40, 41, 44, 45, 50, 51, 56, 57, 58, 59, 64, 65, 68, 69, 70, 71, 76, 77, 80, 81, 86, 87, 94, 95, 98, 99, 100, 101, 104, 105, 106, 107, 110, 111, 124, 125, 128, 129, 134, 135, 136, 137, 146
OFFSET
1,1
LINKS
FORMULA
a(n) ~ 0.5 n log n. - Charles R Greathouse IV, May 25 2011
EXAMPLE
a(1)=5-3=2; a(2)=5-2=3; a(3)=7-3=4.
MATHEMATICA
Table[If[OddQ[n], Prime[(n+1)/2+2]-3, Prime[n/2+2]-2], {n, 70}] (* Harvey P. Dale, Oct 25 2020 *)
PROG
(PARI) forprime(p=5, 97, print1(p-3", "p-2", ")) \\ Charles R Greathouse IV, May 25 2011
CROSSREFS
Sequence in context: A068406 A276878 A047247 * A140769 A364380 A352337
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Entries checked by R. J. Mathar, Apr 14 2010
Definition reworded by N. J. A. Sloane, Aug 24 2012
STATUS
approved