Placement AptitudeHardTCS Digital · Cognizant GenC Elevate

What are the last three digits of 3^(5^20)?

  1. A. 401
  2. B. 243
  3. C. 001
  4. D. 443

Correct answer: D. 443

gcd(3,1000)=1 and phi(1000)=400, so reduce the exponent: 5^20 mod 400 = 225, hence 3^225 mod 1000 = 443. Using 3^20 gives 401 and 3^100 gives 001, which are not the required value.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic