> > Then just square k times and you get for a=12, a^(n-1)=1. > 1 mod 65 I mean .. Erm, yes. But the calculators we can use dont have a mod button that I can find :)