OFFSET
0,7
COMMENTS
This sequence, unlike A276204 (defined similarly) is seemingly irregular.
a(n) <= n/3. - Robert Israel, Aug 24 2016
The graph (and the definition) are reminiscent of A229037. - N. J. A. Sloane, Aug 29 2016
LINKS
Michal Urbanski, Table of n, a(n) for n = 0..49999
EXAMPLE
For n = 6 we have that:
a(6)>0, because a(0)+a(2)+a(4)=0 and 0,2,4,6 is an arithmetic progression.
a(6)>1, because a(3)+a(4)+a(5)=1 and 3,4,5,6 is an arithmetic progression.
there is no such arithmetic progression j,k,m,6 that a(j)+a(k)+a(m)=2, so a(6) = 2.
MAPLE
for i from 0 to 2 do A[i]:= 0 od:
for n from 3 to 200 do
Forbid:= {seq(A[n-d]+A[n-2*d]+A[n-3*d], d=1..floor(n/3))};
A[n]:= min({$0..max(Forbid)+1} minus Forbid)
od:
seq(A[i], i=0..200); # Robert Israel, Aug 24 2016
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Michal Urbanski, Aug 24 2016
STATUS
approved