Quoto

Learn / Library / Mental math

Cycling remainders of powers

Mental mathHard

Let . Find the remainder of on division by .

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Look for the first power that leaves remainder .

Solution
  1. , which leaves remainder on division by .
  2. , so .
  3. Modulo this is .
  4. The remainder is .

Answer: