OFFSET
1,2
EXAMPLE
Given the first seven terms as {1,2,1,2,2,1,2}, we find that a(8)=1 gives S1(8)={1,3,6,8}, S2(8)={2,4,5,7}, both with maximum AP's of length 2, whereas a(8)=2 gives S1(8)={1,3,6}, S2(8)={2,4,5,7,8}, with max length AP's of 2 for S1 and 3 for S2. So a(8) must be assigned the value of 1.
CROSSREFS
KEYWORD
nonn
AUTHOR
John W. Layman, Feb 27 2003
STATUS
approved