Skip to main content
OlympiadHQ

Browse · MathNet

Print

The South African Mathematical Olympiad Third Round

South Africa number theory

Problem

Determine all positive integers such that can be written as a product of an even number of consecutive integers.
Solution
cannot be a product of more than five consecutive integers: since one of the factors would have to be divisible by , this would have to be the case for the product as well, but is not divisible by .

Now we have to consider two cases:

Case 1: If is a product of two consecutive integers, say and , then Consider this equation modulo : clearly, the left hand side is divisible by . On the other hand, the right hand side is never divisible by :
01234
13231
It follows that there is no solution in this case.

Case 2: If is a product of four consecutive integers, say , then Therefore must be even, and must be a power of : where . Solving for yields If now , then is divisible by , but not by ( is a multiple of in this case, so is not), and so it cannot be a square. This shows that there cannot be any solutions for . On the other hand, and satisfy the equation, which leads us to the only solution
Final answer
2

Techniques

Polynomials mod pTechniques: modulo, size analysis, order analysis, inequalitiesQuadratic functionsPolynomial operations