| Graph | Components |
| L12,1 | 1 |
| L12,2 | 2 |
| L12,3 | 3 |
| L12,4 | 4 |
| L12,5 | 1 |
| L12,6 | 6 |
| L12,7 | 1 |
| L12,8 | 4 |
| L12,9 | 3 |
| L12,10 | 2 |
| L12,11 | 1 |
Consider the component that contains vertex 1. It has vertices 1, 1+m, 1+2m, ..., 1+(k - 1)m and then it repeats so 1 + km = 1 (mod n) Therefore k is the smallest number such that km is a multiple of n, i.e. km = lcm{m,n}. We now have
