

False False 



The sequence 1,1,2,1,3,2,3,1,... gives rise to the sequence of fractions
1/1
1/2 , 2/1
1/3 , 3/2 , 2/3 , 3/1
1/4 , 4/3 , 3/5 , 5/2 , 2/5 , 5/3 , 3/4 , 4/1
How can we look at just the left half of the tree?
This is the half that hangs from the node labeled 1/2.

[1, 2, 3, 2, 5, 3, 5, 2, 7, 5, 8, 3, 8, 5, 7, 2, 9, 7, 12, 5, 13, 8, 11, 3, 11, 8, 13, 5, 12, 7, 9, 2, 11, 9, 16, 7, 19, 12, 17, 5, 18, 13, 21, 8, 19, 11, 14, 3, 14, 11, 19, 8, 21, 13, 18, 5, 17, 12, 19, 7, 16, 9, 11, 2, 13, 11, 20, 9, 25, 16, 23, 7, 26, 19, 31, 12, 29, 17, 22, 5, 23, 18, 31, 13, 34, 21, 29, 8, 27, 19, 30, 11, 25, 14, 17, 3, 17, 14, 25, 11] [1, 2, 3, 2, 5, 3, 5, 2, 7, 5, 8, 3, 8, 5, 7, 2, 9, 7, 12, 5, 13, 8, 11, 3, 11, 8, 13, 5, 12, 7, 9, 2, 11, 9, 16, 7, 19, 12, 17, 5, 18, 13, 21, 8, 19, 11, 14, 3, 14, 11, 19, 8, 21, 13, 18, 5, 17, 12, 19, 7, 16, 9, 11, 2, 13, 11, 20, 9, 25, 16, 23, 7, 26, 19, 31, 12, 29, 17, 22, 5, 23, 18, 31, 13, 34, 21, 29, 8, 27, 19, 30, 11, 25, 14, 17, 3, 17, 14, 25, 11] 
Assignment: figure out how to list all the fractions that appear on the tree hanging from 1/2 instead of 1/1.

Let us try to compute the matrix representing the fraction in the kth position of the tree hanging off a/b: if the fraction is
\[ \frac{ea+fb}{ga +hb} \]
then the matrix is
\[ M_k = \begin{pmatrix} e & f\\ g& h \end{pmatrix} \]
The matrices $M_k$ satisfy the recurrences
\[ M_{2k+1} = \begin{pmatrix} 1 & 0 \\ 1 & 1\end{pmatrix} M_k\]
\[ M_{2k+2} = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} M_k\]






What does this picture show us? There appear to still be some gaps in the positions in which first occurences happen. Remember, the vertical axis is showing where the first occurence of n takes place.
We see it even more clearly in the list_plot with nonlog scales: the gaps are more noticeable.




[1, 1, 3, 5, 9, 11, 15, 17, 19, 21] [1, 1, 3, 5, 9, 11, 15, 17, 19, 21] 

4596 240929 262144 4596 240929 262144 
4596 4596 

Questions:
1. Where are the gaps in the sorted list of positions where first occurrences happen? Are powers of 2 involved? How long are the biggest gaps? Where on the tree do these positions correspond to?
2. In the list of numbers which first occur in the first N values of the sequence, which numbers are "missing"? Which numbers are "latecomers" in the sequence a[n].
3. How fast does the list of numbers which first occur in the first N values of the sequence grow as a function of N?
4. Are there other good questions to ask about this?
5. As N changes, the graph looks very selfsimilar: if we look at 2^10, 2^11, 2^12, up to 2^18, how similar are the plots? In particular, is there a strange function to which the graphs are "converging"?
6. If we take the sorted list b, and look at the consecutive differences, the gaps will show up as "spikes" in a list plot. Where are the spikes, and how high are they?
7. Which numbers are latecomers? How can we identify them? How should we define a "latecomer"? Perhaps a latecomer should be a number that occurs later than all numbers smaller than it. How many latecomers are there up to N?
