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!)
A129145 Alternately odd prime and odd composite numbers. 1
3, 9, 5, 15, 7, 21, 11, 25, 13, 27, 17, 33, 19, 35, 23, 39, 29, 45, 31, 49, 37, 51, 41, 55, 43, 57, 47, 63, 53, 65, 59, 69, 61, 75, 67, 77, 71, 81, 73, 85, 79, 87, 83, 91, 89, 93, 97, 95, 101, 99, 103, 105, 107, 111, 109, 115, 113, 117, 127, 119, 131, 121, 137, 123, 139, 125 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For small n's a(2n) >a(2n-1) (that is for small n's, n-th odd prime less than n-th odd composite number), while for large n's a(2n) <a(2n-1) (n-th odd prime larger than n-th odd composite number), cf. A129146
LINKS
FORMULA
a(2n-1)=A065091(n), a(2n) =A071904(n).
MATHEMATICA
Module[{nn=100, pr, cm, len}, pr=Prime[Range[2, nn+1]]; cm=Select[Range[ 9, 2nn+1, 2], CompositeQ]; len=Min[Length[pr], Length[cm]]; Riffle[Take[ pr, len], Take[cm, len]]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 10 2019 *)
CROSSREFS
Sequence in context: A084496 A084530 A070355 * A064471 A264798 A054509
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 01 2007
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 March 28 17:42 EDT 2024. Contains 371254 sequences. (Running on oeis4.)