If those are exponents you might want to be a little more clear.
Are you saying :
?Let . Show that . Find an exponent such that
.
If so, then by no means do you need a computer to solve this problem.
Use Euler's theorem, which states that for any integer , relatively prime to ,
where is Euler's phi function.
So, by Euler's theorem, with , you have .
For the first part you can use the Chinese Remainder Theorem. You have :
so it's impossible that .
Matlab is for engineers.