Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabia Mathematical Competitions

Saudi Arabia number theory

Problem

For any positive integer let be the number of pairs of integers satisfying .

a. Find and .

b. Find .
Solution
Let us consider the following cases.

Case 1: is odd. The equation is equivalent to hence and , where is a divisor of . The system has four solutions, hence we have , where is the number of divisors of .

Case 2: . In this case , that is giving .

Case 3: . The system (1) has no solutions when or . It follows that Assume that , where are odd primes. Then, Finally, we get

For , we have . For , we have , since is a prime.
Final answer
a_1432 = 16, a_1433 = 8; and in general - a_n = 4·tau(n) if n is odd, - a_n = 0 if n ≡ 2 mod 4, - a_n = 4·tau(n/4) if n is divisible by 4.

Techniques

Factorization techniquesτ (number of divisors)Techniques: modulo, size analysis, order analysis, inequalities