Friday, September 02, 2005

GF(13) digit permutation

case d in (0..4): p=d+1; d in (5..9): p=d+2; v=Mod(e,13)^p return v-2 where e in {2,6,7,11}; //e==2 maps 3 to 3

No comments :