If you write out a sequence of Fibonacci numbers, you can see that the last digits repeat every 60 numbers. The 61st Fibonacci number is 2504730781961. The 62nd is 4052739537881. Since these end in 1 and 1, the 63rd Fibonacci number must end in 2, etc. and so the pattern starts over.
It’s not obvious that the cycle should have a length of 60, but it is fairly easy to see that there must be a cycle. There are only 10*10 possibilities for two consecutive digits. Since the Fibonacci numbers are determined by a two-term recurrence, and since the last digit of a sum is determined by the sum of the last digits, the sequence of last digits must repeat eventually. Here “eventually” means after at most 10*10 terms.
Replace “10” with any other base in the paragraph above to show that the sequence of last digits must be cyclic in any base. In base 16, for example, the period is 24. In hexadecimal notation, the 25th Fibonacci number is 12511 and the 26th is 1DA31, so the 27th must end in 2, etc.
The content for the caption is taken from an amazing website by John D. Cook where you can find more such mathematical gems. Check out [ Ссылка ] now!
![](https://s2.save4k.ru/pic/IOMvkgIhtHY/maxresdefault.jpg)