OFFSET
0,2
COMMENTS
P is a doubly-infinite sequence which is a permutation of the positive integers and contains no increasing or decreasing 4-term arithmetic progression.
A central portion of P, showing terms to the left (see A368358) and right (the present sequence) of the central 1:
..., 18, 28, 20, 24, 16, 7, 5, 6, 4, 1, 2, 3, 8, 12, 10, 14, 9, 13, 11, 15, ...
See the link for a larger portion.
LINKS
Davis, J. A.; Entringer, R. C.; Graham, R. L.; and Simmons, G. J.; On permutations containing no long arithmetic progressions, Acta Arith. 34 (1977), no. 1, 81-90. The recurrence defining P is given in Fact 6 on page 87.
N. J. A. Sloane, A portion of P showing 511 consecutive terms around 1
N. J. A. Sloane, Maple code
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 31 2023.
STATUS
approved