Since a+b=6 and ab=1, the recursion Rn+1β=6RnββRnβ1β follows. Use this, together with R0β=1 and R1β=3, to calculate the units digits of R2β,R3β,R4β,R5β,R6β,R7β,β¦ which are 7,9,7,3,1,3,β¦, respectively. An induction argument shows that Rnβ and Rn+6β have the same units digit for all nonnegative n. In particular, R3β,R9β,β―,R12345β all have the same units digit, 9, since 12345=3+6β 2057.
Note. Since (xβa)(xβb)=(xβ3β22β)(xβ3+22β)=x2β6x+1 it follows that a and b satisfy x2=6xβ1, so an+1=anβ1a2=anβ1(6aβ1)=6anβanβ1 and similarly, bn+1=6bnβbnβ1. This yields an alternate derivation of the recursion: