1. Let be a fixed integer greater than 1, and the sequence , is defined as follows:
Find the maximum value of such that there are consecutive terms in the sequence that are divisible by .
(Poland provided)
1. Let be a fixed integer greater than 1, and the sequence , is defined as follows:
Find the maximum value of such that there are consecutive terms in the sequence that are divisible by .
(Poland provided)
Solution: Let be the remainder of modulo . In the sequence, divide the terms into blocks of consecutive terms. Then, there are at most different cases for the remainders. By the pigeonhole principle, one type of case will appear repeatedly. Since the defined recurrence relation can be used to deduce both forward and backward, the sequence is a periodic sequence.
From the given conditions, the backward recurrence formula is
The remainders of the terms are , . To find the remainders modulo of the terms preceding these, using the backward recurrence formula, the remainders of the preceding terms modulo are . Combining the periodicity of the remainder sequence, we get .
On the other hand, if there are consecutive terms in the remainder sequence that are all 0, then by the backward and forward recurrence formulas, for all , we have , which is a contradiction.
Therefore, the maximum value of is .