For every positive integer the Fibonacci sequence modulo is periodic. The period depends on the value of .
This period is called the Pisano period for , often shortened to .
Define as the largest integer such that , and define if there is no such .
For example, there are three values of for which equals : . Therefore .
Let the product function be:
You are given: .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.