Maths Olympiad Prep

Track / Stage 6 / 327 of 400 #1807 of 2444

Problem 1807

National Olympiad, first round
Number theory Difficulty 6.7 Prove it NMO Selection Tests For The Junior Balkan Mathematical Olympiad · Romania

It is said that a positive integer n>1n > 1 has the property (pp) if in its prime factorization
n=p1α1pjαj n = p_1^{\alpha_1} \cdots p_j^{\alpha_j}
at least one of the prime factors p1,,pjp_1, \dots, p_j has the exponent equal to 2.

a) Find the largest number kk for which there exist kk consecutive positive integers that do not have the property (pp).
b) Prove that there is an infinite number of positive integers nn such that n,n+1n, n + 1 and n+2n + 2 have the property (pp).

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

a) Among any 8 consecutive integers there exists one of the form 8j+48j + 4. This number has the property (pp) because the factor 2 from its prime factorization has the exponent 2. Therefore there can be at most 7 consecutive positive integers that do not have the property (pp). Since none of the numbers 29, 30, 31, 32, 33, 34, 35 has the property (pp), the largest kk is k=7k = 7.

b) Since the numbers 98=27298 = 2 \cdot 7^2, 99=321199 = 3^2 \cdot 11, and 100=2252100 = 2^2 \cdot 5^2 have the property (pp), so will the numbers 98+(732)3k98 + (7 \cdot 3 \cdot 2)^3 \cdot k, 99+(732)3k99 + (7 \cdot 3 \cdot 2)^3 \cdot k, and 100+(732)3k100 + (7 \cdot 3 \cdot 2)^3 \cdot k.

Alternative solution.

By the Chinese remainder theorem, there exist an infinite number of solutions for the system of simultaneous congruences: n4(mod8)n \equiv 4 \pmod{8}, n8(mod27)n \equiv 8 \pmod{27}, n23(mod125)n \equiv 23 \pmod{125}. Then n,n+1n, n + 1, and n+2n + 2 all have the property (pp) because the factor 2, 3, and 5, respectively, has the exponent 2 in their prime factorizations.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.