A fly is flying inside a regular tetrahedron with side a. The shortest distance for the fly to fly over every face and return to the initial position is $\frac{a}{\sqrt{m}}$. Find the value of $m$.

Let's think step by step and output the final answer within \boxed{}.
user