A276206 a(0) = a(1) = a(2) = a(3) = 0. For n>3 a(n) is the smallest nonnegative integer such that there is no arithmetic progression i,j,k,m,n (of length 5) such that a(i)+a(j)+a(k)+a(m) = a(n).
0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1, 4, 4, 4, 4, 1, 4, 4, 4, 4, 1, 4, 4, 4, 4, 1, 4, 4, 4, 4, 1, 2
Offset: 0
Keywords
Examples
For n = 23 we have that: a(23)>0, because a(3)+a(8)+a(13)+a(18)=0 and 3,8,13,18,23 is an arithmetic progression. a(23)>1, because a(7)+a(11)+a(15)+a(19)=1 and 7,11,15,19,23 is an arithmetic progression. There is no such arithmetic progression i,j,k,m,23 that a(i)+a(j)+a(k)+a(m)=2, so a(23) = 2.
Links
- Michal Urbanski, Table of n, a(n) for n = 0..199999
Comments