In this paper, the solutions of Frobenius equation xn = a are investigated in the large Mathieu groups M22 and M23 where n is a positive integer, and x, a are conjugacy classes. Furthermore, three algorithms in GAP system are provided to compute the number of solutions and solutions itself (if exists) for this equation.