A Tricky Factorization for Math Competition Problem