Browse · MathNet
Print65th Czech and Slovak Mathematical Olympiad
Czech Republic number theory
Problem
is written on a blackboard. For which positive integers can we append the exclamation mark to some factors and change it to factorials in such a way that the final product will be a square?
Solution
Let us denote the highest power of a prime which divides positive integer . This function has obviously the following properties: - For all primes and positive integers is non-negative integer. - For all positive integers and all primes is . - For all primes is . - For all primes is , . - For all primes and all positive integers is . - Positive integer is a square if and only if is even (including zero) for all primes .
Let us denote the initial value of the product on the table and its final value after adding factorials. We can easy to see from the properties of that for is equal to any prime we obtain and , because adding factorials does not change the amount of the prime (= ) in the final product on the blackboard. The number is then odd and therefore is not a square.
Let us assume that is a composite number (so ) in whole of the following part. We will show that we can add factorials in such a way that the final product will be a square, where is either or for all . It is equivalent to is even for all primes . Since is not a prime, only primes less than occur in the product . As every such primes are not in factors and the prime occurs in only once, the final power is the same as in a “reduced” product How can we provide that every prime will occur in the corresponding product (1) with even power? Since in the second factor from (1) occurs the prime either once (in the case ) or the prime does not occure (if ), we can provide “good” occurrence of by choice of independently on succeeding values .
Foregoing analysis gives us construction of the required choice of factorials. Initially we choose arbitrarily for all such that is not a prime. The other , it is , where is arbitrary prime less than , will be chosen “backwards”, from the biggest such prime to the smallest prime . For the biggest unchosen we find parity of , in odd case we choose , in even case we choose and so on.
This finishes the construction of and solution of the problem too.
Conclusion. Desired are all composite numbers.
Let us denote the initial value of the product on the table and its final value after adding factorials. We can easy to see from the properties of that for is equal to any prime we obtain and , because adding factorials does not change the amount of the prime (= ) in the final product on the blackboard. The number is then odd and therefore is not a square.
Let us assume that is a composite number (so ) in whole of the following part. We will show that we can add factorials in such a way that the final product will be a square, where is either or for all . It is equivalent to is even for all primes . Since is not a prime, only primes less than occur in the product . As every such primes are not in factors and the prime occurs in only once, the final power is the same as in a “reduced” product How can we provide that every prime will occur in the corresponding product (1) with even power? Since in the second factor from (1) occurs the prime either once (in the case ) or the prime does not occure (if ), we can provide “good” occurrence of by choice of independently on succeeding values .
Foregoing analysis gives us construction of the required choice of factorials. Initially we choose arbitrarily for all such that is not a prime. The other , it is , where is arbitrary prime less than , will be chosen “backwards”, from the biggest such prime to the smallest prime . For the biggest unchosen we find parity of , in odd case we choose , in even case we choose and so on.
This finishes the construction of and solution of the problem too.
Conclusion. Desired are all composite numbers.
Final answer
All composite integers n ≥ 2
Techniques
Prime numbersFactorization techniques