Q49
NAT2 marksAlgorithmsMediumSuppose is an array of length , where all the entries are from the set . For any positive integers , consider the following pseudocode.
DOSOMETHING (c, a, n)
z ← 1
for i ← 0 to k-1
do z ← z² mod n
if c[i]=1
then z ← (z × a) mod n
return z
If , then the output of DOSOMETHING(c, a, n) is _______.
Sign in to save attempts.
Keys: Enter checks, ← → move between questions.
The solution is hidden while you attempt this question. It opens once you check or show the answer.