NAT2 marks
Suppose is an array of length , where all the entries are from the set . For any positive integers and , 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 , , and , then the output of DOSOMETHING is _____.Numerical answer