login
A248640
Least nonnegative sequence which does not contain a 5-term equidistant subsequence (a(n+k*d); k=0,1,2,3,4) in arithmetic progression.
2
0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0
OFFSET
0,24
COMMENTS
See A248625 for more information, links and examples.
PROG
(PARI) a=[]; for(n=1, 190, a=concat(a, 0); while(hasAP(a, 5), a[#a]++)); a \\ See A248625 for hasAP(). Use concat(a, 1) for the "positive integer" variant.
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Oct 10 2014
STATUS
approved