What is in common between decimals and reminder

166 Views Asked by At

I am trying to understand this solution for a Project Euler 26 problem. Could you please explain what do the decimals and remainders have in common? In context of this solution.