Data Structures & AlgorithmsVery hardGATE CS · ICPC regional

Starting at x = 1, repeatedly apply x -> 3x mod 11. How many steps are needed to return to 1?

  1. A. 6
  2. B. 7
  3. C. 5
  4. D. 9

Correct answer: C. 5

The multiplicative order of 3 modulo 11 is 5 because 3^5 = 243 = 22 * 11 + 1.

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

Exams that ask this topic