OFFSET
1,1
COMMENTS
a(n) is the least number greater than a(n-1) which never occurs in the sequence S(p,q) {p;0;infinity}{k;3;p).
Any number q appears twice for k =2 as S(2*q,2) and S(2*q+1,2)
For k >2 the smallest values of natural numbers appear for first time as follows for increasing p:
1=S(3,3)
2=S(5,3)
3=S(6,3)
4=S(7,3)
5=S(8,3)
6=S(9,4)
7=S(9,3)
8=S(10,3)
9=S(10,4)
10=S(11,3)
11=S(11,4)
12=S(12,3)
13=S(12,5)
14=S(13,3)
15=S(12,4)
16=S(14,3)
18=S(13,4)
17 never occurs, hence a(1) = 17
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Philippe Lallouet (philip.lallouet(AT)orange.fr), May 18 2008
STATUS
approved