Brain Teaser #92

1. Apr 26, 2004

davilla

Brain Thumper #6

Find the smallest positive integer that does not evenly divide any Fibonacci number in the sequence starting 1, 1, 2, 3, 5, 8, 13, 21, etc.

Last edited: Apr 26, 2004
2. Apr 26, 2004

catch.yossarian

disregarding dividing by 1, could the smallest positive integer be 11?

3. Apr 26, 2004

davilla

1 evenly divides a Fibonacci number (in fact it divides every Fibonacci number) so there's no reason to list it as an exception.

Sorry, 11 divides the tenth Fibonacci number, 55.

4. Apr 26, 2004

NateTG

There are no suitable numbers.

Let's assume, for a moment that there is some number, n with the desired property. Then we can look at the Fibonacci numbers modulo that number.

Since there are at most n different residues, and the state of the fibonacci sequence is determined by two consecutive values, there are at most $$n^2$$ states that the fibonacci sequence can be in.

Moreover, if I have $$F_k$$ and $$F_{k+1}$$ I know that $$F_{k-1}=F_{k+1}-F_{k}$$ for $$k>2$$ - so at any particular location (barring the start), the sequence is determined in both directions.

Now, since the number of possible states is finite, the sequence must, at some point, return to a state that it previously had, and because the sequence is deterministic in both directions, you have that the sequence mod n must be a single loop.

Now, in order loop back to the start $$1,1$$ the sequence must eventually get to $$-1,1,0...$$.

Since the sequence hits a value that is zero mod $$n$$ n divides some of the numbers.

In more concrete terms, given some $$n>0$$ there is at least one Fibonacci number in the first $$n^2$$ fibonacci numbers that is divisible by $$n$$.

5. Apr 26, 2004

gnome

Nate, please define the term state as you are using it in your proof.

6. Apr 26, 2004

holly

is it the number 89?

7. Apr 27, 2004

davilla

NateTG with the point!

In computer science, state is a term for the configuration of a program or an abstract computing machine at a given point in time as the collection of all of its data values. With analogous components, the meaning is the same in electrical engineering.

For a mathematician, the proof might be easier to understand using existential instantiation. There are only finitely many pairs (F(k), F(k+1)) mod n, so for some k there must be a j > k such that F(j) = F(k) and F(j+1) = F(k+1), mod n. Inductively we can prove that F(j+i) = F(k+i) mod n for every i where the expression is defined. Hence F(j-k) = 0 mod n.

Last edited: Apr 28, 2004
8. Apr 27, 2004

gnome

I'm missing something here. How can we assume that every pair (F(k), F(k+1)) mod n is necessarily repeated simply because there is a finite number of pairs? How do we know that there isn't one such pair that is never repeated?

For example, F(5) = 1, mod 4 and F(6) = 0, mod 4. I think you're saying that we know that there must be some j>5 such that F(j) = 1, mod 4 and F(j+1) = 0, mod 4. But how do we know that? (Or is that not what you are saying at all?)

I don't doubt that NateTG's conclusion is correct. I'm just having trouble following the proof.

Last edited: Apr 27, 2004
9. Apr 27, 2004

davilla

NateTG concludes that "the sequence mod n must be a single loop" based on determinism of the minimal state, a consecutive pair of Fibonacci numbers mod n. If you consider a directed graph where each node is a state, determinism in both directions means that there's no branching forward or backward, so the only possibility for a finite graph is a loop.

In the variation I gave, it wasn't assumed that every pair (F(k), F(k+1)) mod n that occurs is repeated. This turns out to be the case, of course, but from the fact that there are a finite number, we only know that some pair must be repeated somewhere: "for some k there must be a j" such that j is a repeat of k. The induction with i must be carried backwards.

Last edited: Apr 28, 2004
10. Apr 27, 2004

NateTG

There are pairs that never occur. For example, every pair of consecutive fibonacci numbers is coprime, so the state 0,0 never occurs mod any number greater than 1.

There are a finite number of states that the finbonnaci sequence can be in, so at some point, it must repeat a state. (Where states are consecutive pairs.) Obviously once it's repeated, it's stuck in the loop.

Now, let's assume that the first repeated state is not 1,1. Then we can look at the first two occurances of a,b. So we have
1,1...a,b...a,b
where none of the ...'s contain a,b or 1,1
Now, consider that you can go to the left from the left hand a,b, since you know the sequence is ...b-a,a,b and then ...2a-b,b-a,a and then ...3a-2b,2a-b,b-a. But then we have the situation that that sequence (going to the left) gets to 1,1 before it gets to a,b for the first ... and gets to a,b before it gets to 1,1 on the second .... This is a contradiction, since the sequences must be the same.

Therefore, the first repeated state must be 1,1.

11. Apr 27, 2004

NateTG

In that context, I mean pairs of consecutive values of the Fibonacci numbers.

If you would like, here's a clearer proof using a directed graph as davilla suggested:

Let's assume, by contradiction, that some n with the desired property exists.

Now, construct a directed graph with $$n^2$$ nodes, and an arbitrary bijection from the ordered pairs $$p \in \mathbb{Z}_n \times \mathbb{Z}_n$$ to the nodes in this graph. So now I can refer to vertices as $$v_{(a,b)}$$ with $$(a,b) \in \mathbb{Z}_n \times \mathbb{Z}_n$$. Then place edges from each vertex $$v_{(a,b)}$$ to the vertex $$v_{(b,a+b)}$$ (Where the addition is mod n).

Let's call this the Fibonacci mod n state graph.

By construction there is only one edge out of any vertex.

Now, given an arbitrary vertex $$v_{(a,b)}$$ the only vertex that has an edge to that vertex is $$v_{(b-a,a)}$$ (with subtraction mod n).

That means that every vertex has only one line in, and one line out.

Now, traveling along these edges starting with $$v_{(1,1)}$$ gives consecutive values of the Fibonacci sequence. Since there is a finite number of vertices, and an infinte number of values in the FIbonacci squenece, the path must eventually loop.

Now, let's assume that the first repeated vertex is not $$v_{(1,1)}$$. Then there must be two edges leading into that vertex. One from the path from $$v_{(1,1)}$$ to that vertex, and another for the path from that vertex to itself (we know that the two are disjoint because this vertex is the first repeated vertex), but this contradicts that there is only one edge into any vertex. Therefore, the first repeated vertex is $$v_{(1,1)}$$.

This means that the fibonacci sequence mod n eventually hits ...,1,1 but that means that the fibonnaci sequence also hits ...,0,1,1 so there is a fibonacci number divisible by n./

Last edited: Apr 28, 2004
12. Apr 28, 2004

gnome

Thanks very much for the explanations. I can follow the first. I follow the second in the sense that I can visualize a graph which I think is the graph you are describing. But my understanding of notation leaves much to be desired.

Does this
>>$$p \in \mathbb{Z}_n \times \mathbb{Z}_n$$

mean the same as this:
given three integers i,j,n, the set of all ordered pairs (i,j) such that 0 < i ≤ n and 0 < j ≤ n ?​

As to the node you refer to as
>>
$$v_{(a,b)} (a,b) \in\mathbb{Z}_n$$

can I interpret that as follows:
given two consecutive fibonacci numbers fa, fb and some integer n, in your node (a,b), a = fa mod n and b = fb mod n?​

But I'm puzzled by your child nodes $$v_{(a,a+b)}$$. Did you mean to write $$v_{(b,a+b)}$$? If not, then I must be misunderstanding the meaning of $$v_{(a,b)}$$

13. Apr 28, 2004

NateTG

Yes. $$\mathbb{Z}_n$$ is a notation for the intgers mod in, and $$\times$$ in that context is the cartesian product. (Technically it provides addition and subtraction, but I was explicit about that.)

That should definitely have been better. I meant that I can refer to $$v_{(a,b)}$$ where $$a$$ and $$b$$ are in $$\mathbb{Z}_n$$.

Once again, my error. I will correct those in the post, thank you.

Last edited: Apr 28, 2004
14. Apr 28, 2004

gnome

Then I should have written

given three integers i,j,n, the set of all ordered pairs (i,j) such that 0 < i < n and 0 < j < n​

not "≤ n", correct?

Thanks, NateTG.

15. Apr 28, 2004

NateTG

Actually, either 0 &leq; i < n or 0 < i &leq; n work. Since $$0 \equiv n$$(mod n) they're equivalent. But one side must be &leq;. (Since the fibonacci sequence hits 0 mod n, those definitely need to be there.)

16. Apr 28, 2004

gnome

Duh....of course.

0 ≤ i < n and 0 ≤ j < n

Thanks again.