OFFSET
1,1
COMMENTS
The length of this longest monochromatic progression is A364995(n).
REFERENCES
B. Sobolewski, On monochromatic arithmetic progressions in binary words associated with pattern sequences, Theoretical Computer Science 1018 (2024), 114815.
LINKS
Gandhar Joshi, Table of n, a(n) for n = 1..1022
Bartosz Sobolewski, On monochromatic arithmetic progressions in binary words associated with pattern sequences, arXiv:2204.05287 [math.CO], 2023.
EXAMPLE
For n = 3, the longest length of the monochromatic arithmetic progression in the Rudin-Shapiro sequence is given by A364995(3)=5. Let r(i) be the i-th term of the Rudin-Shapiro sequence (A020985). We have r(28) = r(31) = r(34) = r(37) = r(40), and no j<i exists such that r(j) = r(j+3) = r(j+2*3) = r(j+3*3) = r(j+4*3). So a(3)=28.
PROG
(Walnut)
# Replace in the code below: every n with the desired constant difference, and every q with the longest MAP length for difference n given by A364995(n).
def rs_n_map "Ak (k<q) => RS[i]=RS[i+n*k] & Aj (j<i) => ~(Ak (k<q) => RS[j]=RS[j+n*k])";
# While using Walnut to find values above and including a(1022), one has to run the code with constant value estimates and through trial and error hone in onto the smallest value that returns TRUE.
CROSSREFS
KEYWORD
nonn
AUTHOR
Gandhar Joshi, Jan 27 2025
STATUS
approved
