|
Search: id:A073898
|
|
|
| A073898 |
|
a(1) = 1; for n>1, a(n) = smallest even or odd number not occurring earlier accordingly as n is prime or composite. |
|
+0 2
|
|
| 1, 2, 4, 3, 6, 5, 8, 7, 9, 11, 10, 13, 12, 15, 17, 19, 14, 21, 16, 23, 25, 27, 18, 29, 31, 33, 35, 37, 20, 39, 22, 41, 43, 45, 47, 49, 24, 51, 53, 55, 26, 57, 28, 59, 61, 63, 30, 65, 67, 69, 71, 73, 32, 75, 77, 79, 81, 83, 34, 85, 36, 87, 89, 91, 93, 95, 38, 97, 99, 101, 40, 103
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
MAPLE
|
A073898 :=proc(nmax) local a, n, k; a := [1] ; while nops(a) < nmax do n := nops(a)+1 ; if isprime(n) then k :=2; else k :=1; fi ; while k in a do k := k+2 ; od ; a := [op(a), k] ; od ; RETURN(a) ; end: op(A073898(80)) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 27 2007
|
|
CROSSREFS
|
Cf. A073897.
Cf. A073846.
Sequence in context: A113981 A135761 A086305 this_sequence A067747 A073846 A110458
Adjacent sequences: A073895 A073896 A073897 this_sequence A073899 A073900 A073901
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Aug 18 2002
|
|
EXTENSIONS
|
Corrected and extended by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 27 2007
|
|
|
Search completed in 0.002 seconds
|