Prove that n+[(2+1)n] is odd for all positive integers n. [x] 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.
Official solution
To prove that n+⌊(2+1)n⌋ is odd for all positive integers n, we will use the sequence an=(1+2)n+(1−2)n.
1. **Define the sequence an:** an=(1+2)n+(1−2)n Notice that (1−2)n is a very small number for large n because ∣1−2∣<1. Therefore, an is very close to (1+2)n.
2. Recurrence relation: We can derive a recurrence relation for an: an=2an−1+an−2 This can be shown by expanding (1+2)n and (1−2)n using the binomial theorem and combining terms.
3. Initial conditions: Calculate the first few terms of an: a0=2,a1=2,a2=6
4. **Parity of an:** We need to show that an is even for all n. We use induction: - Base cases: a0=2(even),a1=2(even),a2=6(even) - Inductive step: Assume ak and ak−1 are even for some k≥2. Then, ak+1=2ak+ak−1 Since ak and ak−1 are even, 2ak and ak−1 are also even, and their sum is even. Thus, ak+1 is even.
By induction, an is even for all n.
5. Greatest integer function: - If n is odd, then ⌊(1+2)n⌋=an. - If n is even, then ⌊(1+2)n⌋=an−1.
6. **Sum n+⌊(1+2)n⌋:** - If n is odd: n+⌊(1+2)n⌋=n+an Since n is odd and an is even, their sum is odd. - If n is even: n+⌊(1+2)n⌋=n+(an−1) Since n is even and an is even, an−1 is odd, and their sum is odd.
Therefore, n+⌊(2+1)n⌋ is odd for all positive integers n.
■
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.