Simplify (1+3i)^2*(2+i)