Question: How do i create a for loop for this question in Maple? (Finding solutions)

Hi I have the question where i have to create a program in Maple

to find all the solutions to x^2 = -1(mod p) where 0 <= x < p . 

The progam has to be tested with different p values. 

 

Please Wait...