Fibonacci Divisors

Find the sum of all primes p p , such that p p divides u p u_p , where u p u_p is the p p -th Fibonacci number.

Details and assumptions

The Fibonacci sequence is defined by F 1 = 1 , F 2 = 1 F_1 = 1, F_2 = 1 and F n + 2 = F n + 1 + F n F_{n+2} = F_{n+1} + F_{n} for n 1 n \geq 1 .


The answer is 5.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

12 solutions

Erick Wong
May 20, 2014

We claim that for any odd prime p 5 p \ne 5 , p u p p \nmid u_{p} . Recall Binet's formula u p = ( α p β p ) / 5 u_p = (\alpha^p - \beta^p)/ \sqrt{5} , where α = ( 1 + 5 ) / 2 \alpha = (1+\sqrt{5})/2 and β = ( 1 5 ) / 2 \beta = (1-\sqrt{5})/2 . Since p p is odd, we are free to multiply by powers of two, so it suffices to consider

2 p 1 u p = ( 1 + 5 ) p ( 1 5 ) p 2 5 \displaystyle 2^{p-1} u_p = \frac{(1 + \sqrt{5})^p - (1 - \sqrt{5})^p}{2\sqrt{5}} .

Writing out each power by binomial expansion, we see that every other term cancels with the other expansion, so the RHS simplifies to the integer expression

k = 0 ( p 1 ) / 2 5 k ( p 2 k + 1 ) \displaystyle \sum_{k=0}^{(p-1)/2} 5^k {p \choose 2k+1} .

By elementary properties of ( p r ) p\choose r , every binomial coefficient is divisible by p p except for the last term, ( p p ) = 1 {p \choose p} = 1 , so modulo p p we get

2 p 1 u p 5 ( p 1 ) / 2 ≢ 0 ( m o d p ) 2^{p-1} u_p \equiv 5^{(p-1)/2} \not\equiv 0 \pmod p .

In fact, by Euler's criterion (and little Fermat) we actually have something more precise: u p ( 5 / p ) ( m o d p ) u_p \equiv (5/p) \pmod p , where ( 5 / p ) = ± 1 (5/p) = \pm 1 is the Legendre symbol.

This analysis also showed that 5 u 5 5 \mid u_5 (which is trivial to verify in any case), and the only prime remaining is 2, which doesn't divide u 2 u_2 . Therefore the only prime to be summed is 5 5 .

Calvin Lin Staff
May 13, 2014

Solution 1: We know that p = 2 p=2 doesn't work. Let p p be an odd prime. Solving the recurrence relation, we have that u n = ( 1 + 5 ) n ( 1 5 ) n 2 n 5 u_n=\frac{(1+\sqrt{5})^n-(1-\sqrt{5})^n}{2^n \sqrt{5}} . If u p u_p is a multiple of p p , then so is 2 p u p 2^p u_p , which is ( 1 + 5 ) p ( 1 5 ) p 5 \frac{(1+\sqrt{5})^p-(1-\sqrt{5})^p}{\sqrt{5}} . Consider the Binomial expansion. The even powers of 5 \sqrt{5} will cancel with their conjugate, while the odd powers of 5 \sqrt{5} will double (and cancel with the denominator leaving an integer). Note that ( p k ) p \choose k is a multiple of p p for all k 0 , p k \neq 0, p , since the numerator has a prime p p . Looking at u p 2 p u_p 2^p modulo p p , we obtain 2 × 5 p 1 0 ( m o d p ) 2 \times \sqrt{5} ^{p-1} \equiv 0 \pmod{p} . Since p p is an odd prime, this holds true only for p = 5 p=5 . A quick check shows that u 5 = 5 u_5 = 5 , so p = 5 p=5 is the only valid solution.

Hence, the sum of all primes p p that divide u p u_p is 5.

Solution 2: First, we note that 5 5 divides u 5 u_5 and 2 2 does not divide u 2 u_2 . Suppose p p is an odd prime, different from 5 5 .

Consider the Fibonacci sequence modulo p p . For convenience, we will use the equality symbol to mean congruence modulo p p . Consider a set S S that consists of residues modulo p p and a symbol . \infty. A ratio of two consecutive Fibonacci numbers, u n u n 1 \frac{u_n}{u_{n-1}} modulo p p naturally belongs to the set S S . Indeed, it is easy to see by induction that two consecutive numbers cannot be both 0 0 modulo p p . We say that u n u n 1 = \frac{u_n}{u_{n-1}}=\infty if u n 1 = 0 u_{n-1} =0 . The recursive formula for the Fibonacci numbers implies that if u n u n 1 = x , \frac{u_n}{u_{n-1}}=x, then u n + 1 u n = f ( x ) , \frac{u_{n+1}}{u_n}=f(x), where f ( x ) = { x + 1 x , if x 0 , , if x = 0 1 , if x = f(x)=\begin{cases} \frac{x+1}{x}, \ &\mbox{if}\ x\neq 0, \infty\\ \infty, \ &\mbox{if}\ x=0\\ 1, \ &\mbox{if}\ x=\infty \end{cases} Note that f f is one-to-one. Consider the sequence of elements of S S that corresponds to ratios u n u n 1 \frac{u_n}{u_{n-1}} of Fibonacci numbers: , f ( ) , f ( f ( ) ) , . . . \infty, f(\infty),f(f(\infty)),... Because S S is finite, we cannot go on forever without repetition. Suppose the ( k + 1 ) (k+1) st element of the sequence is the first element that appeared before. Because f f is one-to-one, it must equal \infty , otherwise we will have two different elements mapped to the same one by f f . This implies that the k k -th element is 0 0 , and this is the first time a zero appeared in the sequence. It follows that a n a n 1 = 0 \frac{a_n}{a_{n-1}}=0 if and only if k k divides n n . Since a p = 0 a_p=0 , this implies that k = p k=p . This means that our sequence covers exactly p p elements of S S , so one is missing. Consider the equation f ( x ) = x f(x)=x . Clearly, it is equivalent to x + 1 x = x , \frac{x+1}{x}=x, which is equivalent to x 2 x 1 = 0. x^2-x-1=0. Because p 5 p\neq 5 , this equation either has two roots or no roots, depending on whether 5 5 is quadratic residue modulo p p or not. Because f f is one-to-one, the element of S S not in our sequence must be sent by f f to itself. So the above equation has at least one, therefore two solutions. The second solution must be an element of our sequence of ratios, which is impossible because p > 1 p>1 . Thus, the answer is 5 5 .

Solution 3: First, we note that 5 5 divides u 5 u_5 and 2 2 does not divide u 2 u_2 . Suppose p p is an odd prime, different from 5 5 . The well-known formula for Fibonacci numbers states the following:

u n = ( 1 + 5 ) n ( 1 5 ) n 2 n 5 u_n=\frac{(1+\sqrt{5})^n-(1-\sqrt{5})^n}{2^n \sqrt{5}}

This formula works for Fibonacci numbers modulo p p , that is in F p = Z / p Z F_p={\mathbb Z}/p{\mathbb Z} , with s = 5 s=\sqrt{5} being either an element of F p F_p or its quadratic extension. Note that there are two square roots of 5 5 , but changing from one to the other changes signs of both numerator and denominator.

For u p u_p to be zero in F p , F_p, we must have ( 1 + 5 ) p ( 1 5 ) p = 0 , (1+\sqrt{5})^p-(1-\sqrt{5})^p=0, which can be rewritten as ( 1 + 5 1 5 ) p = 1 \left( \frac{1+\sqrt{5}}{1-\sqrt{5}} \right)^p=1 The order of the multiplicative group of F p F_p and of its quadratic extension are p 1 p-1 and p 2 1 p^2-1 respectively. By the corollary of the Lagrange theorem, the order of 1 + 5 1 5 \frac{1+\sqrt{5}}{1-\sqrt{5}} divides that. But from the above formula this order must divide p p , so it equals 1 1 . This implies that 1 + 5 1 5 = 1 , \frac{1+\sqrt{5}}{1-\sqrt{5}} =1, so 1 + 5 = 1 5 , 1+\sqrt{5} =1-\sqrt{5}, which is impossible. Thus, the answer is 5 5 .

By the fact that p|u p−1 or u p+1, if p is a prime >5, and GCD(u p−1,u p)=1, for all p∈N, so if p>5 is a prime, then p∤u p, since if p∣u p, then GCD(u p−1,u p) or GCD(u p+1,u p)≥p>1, a contradiction. Therefore,we just need to check p=2,3,5, and it is easy to check that only 5∣u_5, satisfies the condition and thus the answer is 5.

Andrew Kwon
May 20, 2014

First we will require a short lemma that states that $p \mid \dbinom{p}{k}$ for any $1\le k \le p-1$. If we write $\dbinom{p}{k}$ as $\frac{p!}{k!(p-k)!}$, it is not hard to see that there are no integers less than $p$ that divide $p$, given it is prime. Proceeding, it is natural to consider Binet's Formula so that we can algebraically deal with the Fibonacci numbers. Binet's Formula states that $$F n=\frac{1}{\sqrt{5}} \left(\left(\frac{1+\sqrt{5}}{2}\right)^n-\left(\frac{1-\sqrt{5}}{2}\right)^n\right)$$. Factoring out the $\frac{1}{2^n}$ from each binomial expansion and simplifying, we find that $F p$ for some prime $p$ is equivalent to $$\frac{1}{2^{p-1}} \left(\sum_{n=1}^{\frac{p+1}{2}} 5^n \dbinom{p}{2n-1}$$. We are guaranteed that this value is always an integer from the nature of the Fibonacci sequence and the derivation of Binet's formula, so we need only consider the numerator of this expression. Using the previously stated lemma, we have that $p$ divides every term in the numerator, with the exception being $5^{\frac{p+1}{2}}\dbinom{p}{p}=5^{\frac{p+1}{2}}$. It follows that $p$ must divide a power of 5, and thus the only prime number with the desired property is $p=5$.

Zi Song Yeoh
May 20, 2014

By the fact that p u p 1 p | u_{p - 1} or u p + 1 u_{p + 1} , if p is a prime > 5 > 5 , and G C D ( u p 1 , u p ) = 1 GCD (u_{p - 1}, u_{p}) = 1 , for all p N p \in \mathbb{N} , so if p > 5 p > 5 is a prime, then p u p p \nmid u_{p} , since if p u p p \mid u_{p} , then G C D ( u p 1 , u p ) GCD (u_{p - 1}, u_{p}) or G C D ( u p + 1 , u p ) p > 1 GCD (u_{p +1}, u_{p}) \ge p > 1 , a contradiction.

Therefore,we just need to check p = 2 , 3 , 5 p = 2, 3, 5 , and it is easy to check that only 5 u 5 5 \mid u_{5} , satisfies the condition and thus the answer is 5 \boxed {5} .

Note : See this for details on the fact.

Jason Xie
May 20, 2014

I started by listing out Fibonacci Numbers, and I noticed that every 3rd Fibonacci Number was a multiple of the 3rd Fibonacci Number, 2. By expanding my list, I found out that every 4th Fibonacci Number is divisible by 3 (The 4th Fibonacci Number), and this pattern continued, so I made a generalization that every n-th Fibonacci Number was divisible by the nth Fibonacci Number.

With this in mind, I started inserting primes in place of the nth Fibonacci Number. I only worked with the numbers 2, 3, 5, 13, 89 because they satisfied the conditions of being prime, being a Fibonacci Number, and being relatively small so that I could detect a pattern.

Results: 2 - Every 3rd Fibonacci number is divisible by 2. (Fails) 3 - Every 4th Fibonacci number is divisible by 3. (Fails) 5 - Every 5th Fibonacci number is divisible by 5. (Works) 13 - Every 7th Fibonacci number is divisible by 13. (Fails) 89 - Every 11th Fibonacci number is divisible by 89. (Fails)

I noticed that after 5, there could be no prime where F(p) is divisible by p because the primes were growing much more rapidly than the index of the Fibonacci number; also, because we are checking for primes, we can ignore the fact that every n-th number is divisible by the prime because only the first number has the possibility of equaling the prime.

Finally, I took into account the primes that were not part of the Fibonacci List. I found that, with the exception of the prime 2, F(p) is also a prime number (a bit of a generalization, not sure if it is entirely true), I tested this on the primes 3, 5, 7, 11, 13.

Results: F(3) = 2 F(5) = 5 F(7) = 13 F(11) = 89 F(13) = 233

Similarly to before, after the prime 5, the output greatly outgrows the index, so I safely assumed that 5 would be the only solution that would work because the output would have to be equal for the output to be divisible by the input since they are both prime.

Thus, the only prime that works is 5.

Richard Zhu
May 20, 2014

Let us observe the actual sequence.

u 1 = 1 u_{1}=1

u 2 = 1 u_{2}=1

u 3 = 2 u_{3}=2

u 4 = 3 u_{4}=3

u 5 = 5 u_{5}=5

u 6 = 8 u_{6}=8

u 7 = 13 u_{7}=13

u 8 = 21 u_{8}=21

u 9 = 34 u_{9}=34

u 10 = 55 u_{10}=55

u 11 = 89 u_{11}=89

u 12 = 144 u_{12}=144

u 13 = 233 u_{13}=233

u 14 = 377 u_{14}=377

u 15 = 610 u_{15}=610

\ldots

And we see instantly that u 5 0 ( m o d 5 ) u{5} \equiv 0 \pmod{5} . This means that p = 5 p=5 is a proper divisor of u 5 u_{5} .

As we continue testing the other numbers, we see none that also match this property. Interestingly enough, u 5 u_{5} is the only Fibonacci number that has this property. So, 5 5 is our answer.

Udit Jain
May 20, 2014

I used a brute force method to solve for the first 15 numbers ( few steps showed that it wasn't possible prior to that ).

Jimmi Simpson
May 20, 2014

Binet's Formula says that the n n -th Fibonacci number is given by μ p = ( ϕ ) n ( 1 ϕ ) n 5 \mu_p = \frac{\left(\phi\right)^n-\left(1-\phi\right)^n}{\sqrt{5}} where ϕ = 1 + 5 2 \phi = \frac{1+\sqrt{5}}{2} .

Pace Maker
May 20, 2014

I am gonna denote the n t h n^{th} Fibonacci number by F n F_n , instead of u n u_n . It's well known, from Binet's Formula that, F n = α n β n 5 F_n=\dfrac{\alpha^n-\beta^n}{\sqrt{5}} where α = 1 + 5 2 , β = 1 5 2 \alpha=\dfrac{1+\sqrt{5}}{2},\beta=\dfrac{1-\sqrt5}{2} In case, the proof isn't known, we can easily prove this using induction, along with the facts that α 2 = 1 + α , β 2 = 1 + β \alpha^2=1+\alpha,\beta^2=1+\beta . However, we skip this part.

Next, we expand α n \alpha^n and β n \beta^n using Binomial theorem.

( 1 + 5 ) n = i = 0 p ( p i ) ( 5 ) i (1+\sqrt5)^n=\sum\limits_{i=0}^p\binom pi(\sqrt5)^i

( 1 5 ) n = i = 0 p ( p i ) ( 5 ) i (1-\sqrt5)^n=\sum\limits_{i=0}^p\binom pi(-\sqrt5)^i Summing them, α n β n = 1 2 p 1 i p , i odd ( p i ) ( 5 ) i \alpha^n-\beta^n=\dfrac{1}{2^{p-1}}\sum\limits_{i\leq p,i\mbox{ odd}}\binom pi(\sqrt{5})^i Since we can check manually that, p = 2 p=2 doesn't work, we assume p p to be odd. We prove another lemma. Lemma: If p p is a prime and i , 0 < i < p i,0<i<p is a positive integer, then p ( p i ) p|\binom pi Proof: Note the identity: ( n k ) = n k ( n 1 k 1 ) \binom nk=\dfrac nk\binom{n-1}{k-1} So, i ( p i ) = p ( p 1 i 1 ) i\binom pi=p\binom{p-1}{i-1} Since, gcd ( p , i ) = 1 , \gcd(p,i)=1, we can say p ( p i ) p|\binom pi . \blacksquare Therefore, we have, F p 1 2 p 1 5 p 2 0 ( m o d p ) F_p\equiv\dfrac1{2^{p-1}}5^{\frac p2}\equiv0\pmod p which implies p = 5 p=5 .

Rogers Epstein
May 20, 2014

It is known that Fibonacci numbers have the strange property that if F(n) gives the nth Fibonacci number, then if n is prime F(n) is prime. So, since we are trying to find all F(n) that are divisible by n when n is prime, there will be very few, since F(n) is prime. However, if we consider the first few terms:

F(1)=1 F(2)=1 F(3)=2 F(4)=3 F(5)=5

We realize that F(5) is divisible by 5, since it is 5. Since the next F(n)>n, this is the only possible case, so the answer is 5.

For those curious to why the first rule works, here's a proof:

Taking First, acknowledge gcd(F(m),F(n)) = F(gcd(m,n)). If F(n) is prime, and n>m, then gcd(F(m),F(n))=1. So, the F(gcd(m,n))=1, and gcd(m,n)= 1 or 2. Further investigation of the casework shows that our statement is true.

in general ,p th fibonacci number = sum of two fibonacci nos. preceeding it. so,by using all prime nos. and checking whether it divides that fibonacci number or not ,we can easily find that it suits only for 2 and 3 and hence their sum is 5

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...