search for the last digit of Fibonacci number