login
A073897
a(1) = 1, a(n) = smallest odd or even number not occurring earlier according as n is prime or composite.
2
1, 3, 5, 2, 7, 4, 9, 6, 8, 10, 11, 12, 13, 14, 16, 18, 15, 20, 17, 22, 24, 26, 19, 28, 30, 32, 34, 36, 21, 38, 23, 40, 42, 44, 46, 48, 25, 50, 52, 54, 27, 56, 29, 58, 60, 62, 31, 64, 66, 68, 70, 72, 33, 74, 76, 78, 80, 82, 35, 84, 37, 86, 88, 90, 92, 94, 39
OFFSET
1,2
LINKS
CROSSREFS
Cf. A073898.
Sequence in context: A227988 A182813 A334627 * A237058 A285297 A097465
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 18 2002
EXTENSIONS
More terms from Alois P. Heinz, Oct 29 2015
STATUS
approved