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”).

A083197
Triangular array, read by rows, where if n is odd the n-th row consists of n least unused nonprimes, while if n is even the n-th row consists of the n least unused primes.
0
1, 2, 3, 4, 6, 8, 5, 7, 11, 13, 9, 10, 12, 14, 15, 17, 19, 23, 29, 31, 37, 16, 18, 20, 21, 22, 24, 25, 41, 43, 47, 53, 59, 61, 67, 71, 26, 27, 28, 30, 32, 33, 34, 35, 36, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 38, 39, 40, 42, 44, 45, 46, 48, 49, 50, 51, 127, 131, 137
OFFSET
1,2
COMMENTS
This sequence is a permutation of the natural numbers.
EXAMPLE
Triangle begins:
1
2 3
4 6 8
5 7 11 13
9 10 12 14 15
17 19 23 29 31 37
...
CROSSREFS
Sequence in context: A166310 A293030 A109852 * A235262 A245704 A260425
KEYWORD
nonn,tabl
AUTHOR
Amarnath Murthy, Apr 27 2003
EXTENSIONS
Edited, corrected and extended by Ray Chandler, Jan 05 2009
STATUS
approved