Skip to main content

GATE CSE 2019Combinatory › Counting Principles & PigeonholeVerified

GATE CSE 2019 PYQ: The value of 3 51 mod 5 3^{51} \text{ mod } 5 3 51 mod 5 is _____

The value of 351 mod 53^{51} \text{ mod } 5 is _____

    Answer

    2

    Approach

    Since we only need the remainder modulo 5, reduce the base and use the repeating cycle of powers of 3 modulo 5. The pattern is 3, 4, 2, 1 repeating with period 4, so reduce the exponent 51 modulo 4.

    The powers of 3 modulo 5 repeat every 4 exponents, and 51 leaves remainder 3. Thus $3^51$ mod 5 equals $3^3$ mod 5, which is 27 mod 5 = 2. All provided community solutions agree on this result.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.