The Leonardo numbers form a cycle in any modulo n≥2. An easy way to see it is:
If a pair of numbers modulo n appears twice in the sequence, then there's a cycle.
If we assume the main statement is false, using the previous statement, then it would imply there's infinite distinct pairs of numbers between 0 and n-1, which is false since there are n2 such pairs.
The cycles for n≤8 are:
Modulo
Cycle
Length
2
1
1
3
1,1,0,2,0,0,1,2
8
4
1,1,3
3
5
1,1,3,0,4,0,0,1,2,4,2,2,0,3,4,3,3,2,1,4
20
6
1,1,3,5,3,3,1,5
8
7
1,1,3,5,2,1,4,6,4,4,2,0,3,4,1,6
16
8
1,1,3,5,1,7
6
The cycle always end on the pair (1,n-1), as it's the only pair which can precede the pair (1,1).
Expressions
The following equation applies:
Proof
Relation to Fibonacci numbers
The Leonardo numbers are related to the Fibonacci numbers by the relation .
From this relation it is straightforward to derive a closed-form expression for the Leonardo numbers, analogous to Binet's formula for the Fibonacci numbers: