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!)
A077157 a(0) = 1, followed by next n composite numbers followed by next n primes. 1
1, 4, 2, 6, 8, 3, 5, 9, 10, 12, 7, 11, 13, 14, 15, 16, 18, 17, 19, 23, 29, 20, 21, 22, 24, 25, 31, 37, 41, 43, 47, 26, 27, 28, 30, 32, 33, 53, 59, 61, 67, 71, 73, 34, 35, 36, 38, 39, 40, 42 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
A permutation of the natural numbers.
LINKS
MATHEMATICA
Module[{nn=10, pr, cm}, pr=Prime[Range[(nn(nn+1))/2]]; cm=Complement[Range[ 2, Max[pr]], pr]; Join[{1}, Flatten[Thread[{TakeList[cm, Range[nn]], TakeList[ pr, Range[ nn]]}]]]](* Harvey P. Dale, Aug 04 2022 *)
CROSSREFS
Cf. A077156.
Sequence in context: A083412 A086399 A105365 * A268718 A306874 A114478
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Oct 31 2002
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 May 6 05:12 EDT 2024. Contains 372290 sequences. (Running on oeis4.)