You are viewing a single comment's thread. Return to all comments →
Hi, as the output can be very large (exceeding the limits of 64 bits integer) modulo operation common way to check the correctness of output. It is only a explanation that first series is power of two, while second is power of three. You don't have to find such patter.
Seems like cookies are disabled on this browser, please enable them to open this website
Huge GCD
You are viewing a single comment's thread. Return to all comments →
Hi, as the output can be very large (exceeding the limits of 64 bits integer) modulo operation common way to check the correctness of output.
It is only a explanation that first series is power of two, while second is power of three. You don't have to find such patter.