A073897 a(1) = 1, a(n) = smallest odd or even number not occurring earlier according as n is prime or composite.
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
Keywords
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A073898.
Extensions
More terms from Alois P. Heinz, Oct 29 2015