Olympiad Maths Prep

Track / Stage 7 / 105 of 300 #1505 of 2000

Problem 1505

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.2 Prove it

Given [i]Fibonacci[/i] sequence (Fn),(F_n), and a positive integer mm.
a) Prove that: there exists integers 0i<jm20\le i<j\le m^2 such that FiFj(modm)F_i\equiv F_j (\bmod m) and Fi+1Fj+1(modm)F_{i+1}\equiv F_{j+1}(\bmod m).

b) Prove that: there exists a positive integer kk such that Fn+kFn(modm),F_{n+k}\equiv F_n(\bmod m), for all natural numbers nn.

[i]*Denote k(m)k(m) by the smallest positive integer satisfying Fn+k(m)Fn(modm),F_{n+k(m)}\equiv F_n(\bmod m), for all natural numbers nn*[/i].
c) Prove that: k(m)k(m) is the smallest positive integer such that Fk(m)0(modm)F_{k(m)}\equiv 0(\bmod m) and Fk(m)+11(modm)F_{k(m)+1}\equiv 1(\bmod m).

d) Given a positive integer kk. Prove that: Fn+kFn(modm)F_{n+k}\equiv F_n(\bmod m) for all natural numbers nn iff kk(m)k\vdots k(m).

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

### Part (a)
1. Pigeonhole Principle Application:
- Consider the pairs (Fi,Fi+1)modm(F_i, F_{i+1}) \mod m for i=0,1,2,,m2i = 0, 1, 2, \ldots, m^2.
- There are m2+1m^2 + 1 such pairs but only m2m^2 possible distinct pairs modulo mm.
- By the Pigeonhole Principle, at least two of these pairs must be the same.
- Therefore, there exist integers 0i<jm20 \le i < j \le m^2 such that:
(Fi,Fi+1)(Fj,Fj+1)(modm) (F_i, F_{i+1}) \equiv (F_j, F_{j+1}) \pmod{m}

### Part (b)
1. Using Result from Part (a):
- From part (a), we have 0i<jm20 \le i < j \le m^2 such that:
FiFj(modm)andFi+1Fj+1(modm) F_i \equiv F_j \pmod{m} \quad \text{and} \quad F_{i+1} \equiv F_{j+1} \pmod{m}
- Let k=jik = j - i. Then:
Fn+kFn(modm)for all natural numbers n F_{n+k} \equiv F_n \pmod{m} \quad \text{for all natural numbers } n

### Part (c)
1. **Definition of k(m)k(m)**:
- By definition, k(m)k(m) is the smallest positive integer such that:
Fn+k(m)Fn(modm)for all natural numbers n F_{n+k(m)} \equiv F_n \pmod{m} \quad \text{for all natural numbers } n
2. Properties of Fibonacci Sequence:
- Consider the sequence starting from F0=0F_0 = 0 and F1=1F_1 = 1.
- The smallest period k(m)k(m) must satisfy:
Fk(m)0(modm)andFk(m)+11(modm) F_{k(m)} \equiv 0 \pmod{m} \quad \text{and} \quad F_{k(m)+1} \equiv 1 \pmod{m}
- This is because the Fibonacci sequence modulo mm must reset to the initial conditions F00(modm)F_0 \equiv 0 \pmod{m} and F11(modm)F_1 \equiv 1 \pmod{m} to repeat.

### Part (d)
1. **If kk(m)k \vdots k(m)**:
- If kk is a multiple of k(m)k(m), then:
k=tk(m)for some integer t k = t \cdot k(m) \quad \text{for some integer } t
- Therefore:
Fn+k=Fn+tk(m)Fn(modm)for all natural numbers n F_{n+k} = F_{n + t \cdot k(m)} \equiv F_n \pmod{m} \quad \text{for all natural numbers } n
2. **If kk is not a multiple of k(m)k(m)**:
- Suppose kk is not a multiple of k(m)k(m).
- Then there exists a smaller period in the Fibonacci sequence modulo mm, which contradicts the minimality of k(m)k(m).
- Hence, kk must be a multiple of k(m)k(m).

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.