Let be distinct real numbers and be positive integers . Consider sequences with the following properties:
(i) terms , including , are equal to ;
(ii) terms , including , are equal to ;
(iii) no three consecutive terms are equal.
Find all possible values of .
Solution
1. **Substitute with in the inequalities and :**
Given , we can replace with . Thus, the inequalities become:
Simplifying these inequalities:
2. **Determine the range of :**
Since is an integer, it can range from to , inclusive.
3. **Analyze the sum :**
Each term in the sum is either or due to condition (iii) that no three consecutive terms are equal. Let be the number of terms and be the number of terms . Therefore, the sum can be expressed as:
4. **Count the number of 's in the sum:**
Each is counted three times in the sum. Since there are terms equal to , the total number of 's in the sum is . Thus, we have:
5. Determine the possible values for the sum:
Since and ranges from to , the number of possible values for is equal to the number of possible values for . Therefore, the number of possible values for the sum is: