Browse · MathNet
PrintLocal Mathematical Competitions
Romania counting and probability
Problem
Given any positive integers, and a sequence of integers (with terms among them), prove there exists a subsequence made of consecutive terms, such that the product of its terms is a perfect square. Also show that we cannot replace with any lower value (therefore is the threshold value for this property).
Solution
Since the integers could well be distinct primes, this is equivalent to proving the stricter problem of, given a finite alphabet of letters , and a word of length on this alphabet, to show it contains a nonempty contiguous subword (, where could be the empty word), in which each letter appears at an even number of times.
Let us, further on, identify the letter with the element given by , where the 1 is at the th position. Now the requirement is to find a subword such that the sum of its elements is .
We will apply a classical idea of Erdős. Let be the word, with for all . Define for all . If any of , we are done, since can be taken as the subword; otherwise there must exist such that , so then , and we can take the subword .
Let us notice that the result is tight. There exist words of length without this property. We can build them inductively. Take , and build for all .
Let us, further on, identify the letter with the element given by , where the 1 is at the th position. Now the requirement is to find a subword such that the sum of its elements is .
We will apply a classical idea of Erdős. Let be the word, with for all . Define for all . If any of , we are done, since can be taken as the subword; otherwise there must exist such that , so then , and we can take the subword .
Let us notice that the result is tight. There exist words of length without this property. We can build them inductively. Take , and build for all .
Techniques
Pigeonhole principleInduction / smoothingVectors