NAT · 2 marks · Linear Data Structures
GATE CS 2015 CS-3 — Q63
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 zIf , , and , then the output of DOSOMETHING() is ____________.