A unit fraction contains in the numerator. The decimal representation of the unit fractions with denominators to are given:
Where means , and has a -digit recurring cycle. It can be seen that has a -digit recurring cycle.
Unit fractions whose denominator has no other prime factors than and/or are not considered to have a recurring cycle.
We define the length of the recurring cycle of those unit fractions as .
Let denote the length of the recurring cycle of .
You are given that for equals .
Find for .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.