login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(1) = 1, a(n) = smallest odd or even number not occurring earlier according as n is prime or composite.
2

%I #6 Oct 29 2015 18:33:21

%S 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,

%T 34,36,21,38,23,40,42,44,46,48,25,50,52,54,27,56,29,58,60,62,31,64,66,

%U 68,70,72,33,74,76,78,80,82,35,84,37,86,88,90,92,94,39

%N a(1) = 1, a(n) = smallest odd or even number not occurring earlier according as n is prime or composite.

%H Alois P. Heinz, <a href="/A073897/b073897.txt">Table of n, a(n) for n = 1..10000</a>

%Y Cf. A073898.

%K nonn

%O 1,2

%A _Amarnath Murthy_, Aug 18 2002

%E More terms from _Alois P. Heinz_, Oct 29 2015