GateAI
Combinatorics

GATE CSE 2019 · Q21

NAT1 markEasy

Time

The value of 351 mod 53^{51} \bmod 5 is _______.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 2 (±0)

Combinatorics

By Fermat's Little Theorem, since 55 is prime and gcd⁡(3,5)=1\gcd(3, 5) = 1:

35−1≡34≡1(mod5)3^{5-1} \equiv 3^4 \equiv 1 \pmod 5

We express the exponent 5151 in terms of multiples of 44:

51=4×12+351 = 4 \times 12 + 3

Therefore:

351=(34)12×33≡112×27(mod5)3^{51} = (3^4)^{12} \times 3^3 \equiv 1^{12} \times 27 \pmod 5
27≡2(mod5)27 \equiv 2 \pmod 5

Thus, the value of 351 mod 53^{51} \bmod 5 is 2.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Combinatorics previous year question is Q21 of the GATE CSE 2019 paper. Find more GATE CSE PYQs on Combinatorics in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Combinatorics PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Combinatorics in GATE CSE

Combinatorics has 19 GATE CSE PYQs across 15 papers from 2012 to 2025. 5 of them are 1-mark NAT questions like this one, and GATE CSE 2019 has 2.

How GATE tests Combinatorics

More from GATE CSE 2019

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2019 · Q21 · NAT

The value of 351 mod 5 is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.