Question: Error, invalid subscript selector

Hi,

I got something like:

t:=NULL:

for i to nops(S) do

...

...

temp2:=(temp)^(-1) mod t[i]:

...

...


od:

 

the problem is that since I have assigned t:=NULL

for i=1

there is a problem to run

temp2:=(temp)^(-1) mod t[i]:
 

it becomes

temp2:=(temp)^(-1) mod t[1]:

at that time 't' is actually a number , just a single value, so it cant have subscript.

 

how do I solve that problem?

 

thanks

 

casper

 

Please Wait...