Data Structures & AlgorithmsVery hardGATE CS · ICPC regional

What is the last digit of 3^2024?

  1. A. 1
  2. B. 2
  3. C. 3
  4. D. 5

Correct answer: A. 1

The last digits of powers of 3 cycle as 3, 9, 7, 1 with period 4; since 2024 is divisible by 4, the last digit is 1.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic