Maths Olympiad Prep

Track / Stage 6 / 328 of 400 #1328 of 1964

Problem 1328

National Olympiad, first round
Number theory Difficulty 6.5 Prove it

Prove that n+[(2+1)n]n + \big[ (\sqrt{2} + 1)^n\big] is odd for all positive integers nn.
[x]\big[ x \big] denotes the greatest integer function.

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

To prove that n+⌊(2+1)n⌋ n + \left\lfloor (\sqrt{2} + 1)^n \right\rfloor is odd for all positive integers n n , we will use the sequence an=(1+2)n+(1−2)n a_n = (1+\sqrt{2})^n + (1-\sqrt{2})^n .

1. **Define the sequence an a_n :**
an=(1+2)n+(1−2)n a_n = (1+\sqrt{2})^n + (1-\sqrt{2})^n
Notice that (1−2)n (1-\sqrt{2})^n is a very small number for large n n because ∣1−2∣<1 |1-\sqrt{2}| < 1 . Therefore, an a_n is very close to (1+2)n (1+\sqrt{2})^n .

2. Recurrence relation:
We can derive a recurrence relation for an a_n :
an=2an−1+an−2 a_n = 2a_{n-1} + a_{n-2}
This can be shown by expanding (1+2)n (1+\sqrt{2})^n and (1−2)n (1-\sqrt{2})^n using the binomial theorem and combining terms.

3. Initial conditions:
Calculate the first few terms of an a_n :
a0=2,a1=2,a2=6 a_0 = 2, \quad a_1 = 2, \quad a_2 = 6

4. **Parity of an a_n :**
We need to show that an a_n is even for all n n . We use induction:
- Base cases:
a0=2(even),a1=2(even),a2=6(even) a_0 = 2 \quad (\text{even}), \quad a_1 = 2 \quad (\text{even}), \quad a_2 = 6 \quad (\text{even})
- Inductive step:
Assume ak a_k and ak−1 a_{k-1} are even for some k≥2 k \geq 2 . Then,
ak+1=2ak+ak−1 a_{k+1} = 2a_k + a_{k-1}
Since ak a_k and ak−1 a_{k-1} are even, 2ak 2a_k and ak−1 a_{k-1} are also even, and their sum is even. Thus, ak+1 a_{k+1} is even.

By induction, an a_n is even for all n n .

5. Greatest integer function:
- If n n is odd, then ⌊(1+2)n⌋=an \left\lfloor (1+\sqrt{2})^n \right\rfloor = a_n .
- If n n is even, then ⌊(1+2)n⌋=an−1 \left\lfloor (1+\sqrt{2})^n \right\rfloor = a_n - 1 .

6. **Sum n+⌊(1+2)n⌋ n + \left\lfloor (1+\sqrt{2})^n \right\rfloor :**
- If n n is odd:
n+⌊(1+2)n⌋=n+an n + \left\lfloor (1+\sqrt{2})^n \right\rfloor = n + a_n
Since n n is odd and an a_n is even, their sum is odd.
- If n n is even:
n+⌊(1+2)n⌋=n+(an−1) n + \left\lfloor (1+\sqrt{2})^n \right\rfloor = n + (a_n - 1)
Since n n is even and an a_n is even, an−1 a_n - 1 is odd, and their sum is odd.

Therefore, n+⌊(2+1)n⌋ n + \left\lfloor (\sqrt{2} + 1)^n \right\rfloor is odd for all positive integers n n .

■\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.