Show that [list=a][*] infinitely many perfect squares are a sum of a perfect square and a prime number, [*] infinitely many perfect squares are not a sum of a perfect square and a prime number. [/list]
Problem 1529
Official solution
1. Infinitely many perfect squares are a sum of a perfect square and a prime number:
Consider the perfect square . We can express this as:
Here, is a perfect square and is an odd number. Since there are infinitely many odd prime numbers, we can choose such that is a prime number. For example, if , (which is prime), and . Similarly, for , (which is prime), and .
Since there are infinitely many odd primes, we can always find an such that is a prime number. Therefore, there are infinitely many perfect squares that can be expressed as the sum of a perfect square and a prime number.
2. Infinitely many perfect squares are not a sum of a perfect square and a prime number:
Consider the perfect square again. We can express this as:
Here, is a perfect square and is an odd number. Since there are infinitely many odd composite numbers, we can choose such that is an odd composite number. For example, if , (which is composite), and . Similarly, for , (which is prime), and .
Since there are infinitely many odd composite numbers, we can always find an such that is an odd composite number. Therefore, there are infinitely many perfect squares that cannot be expressed as the sum of a perfect square and a prime number.
To further solidify this, consider the expression . For all with , if is an odd composite number, then cannot be expressed as the sum of a perfect square and a prime number.
This completes the proof for both parts.