see the attachment
http://cboard.cprogramming.com/attac...1&d=1217262034
Code:#include <stdio.h> #include <math.h> main(){ int a,b,p; for(a=1;a<=p-1;a++){ printf("%d\t",a); for(b=1;b<=p-1;b++){ if(a*b%p==1){ printf("%d\n",b); break; } } } }
but, how can u get rid of "the distractions of performing real arithmetic accurately"?
maybe there is misunderstanding of the question.
i think, "in this way the distractions of performing real arithmetic accurately on the computer will be avoided." means p is a prime but not a constant???
if we set p=17,
how can we "store" the inverses of non-zero elements of F?
I think we are missing some information. The link in your first post did not work for me.