OFFSET
1,3
COMMENTS
Also the set of numbers with no "6" in their base-7 representation; see Gerver-Ramsey, also comments in A020654. - Nathaniel Johnston, Jun 27 2011
Up to the offset, identical to A037470. There are lexicographically earlier, but non-monotonic sequences which do not contain a 7-term AP, e.g., starting with 0,0,0,0,0,0,1,0,... - M. F. Hasler, Oct 05 2014
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
J. L. Gerver and L. T. Ramsey, Sets of integers with no long arithmetic progressions generated by the greedy algorithm, Math. Comp., 33 (1979), 1353-1359.
MAPLE
seq(`if`(numboccur(6, convert(n, base, 7))=0, n, NULL), n=0..85); # Nathaniel Johnston, Jun 27 2011
MATHEMATICA
Select[Range[0, 100], FreeQ[IntegerDigits[#, 7], 6]&] (* Jean-François Alcover, Jan 27 2023 *)
PROG
(PARI) a(n)=vector(#n=digits(n-1, 6), i, 7^(#n-i))*n~ \\ M. F. Hasler, Oct 05 2014
CROSSREFS
Summary of increasing sequences avoiding arithmetic progressions of specified lengths (the second of each pair is obtained by adding 1 to the first):
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Name edited by M. F. Hasler, Oct 10 2014. Further edited by N. J. A. Sloane, Jan 04 2016
STATUS
approved