The sum of all positive integers $m$ such that $\frac{13!}{m}$ is a perfect square can be written as $2^a3^b5^c7^d11^e13^f,$ where $a,b,c,d,e,$ and $f$ are positive integers. Find $a+b+c+d+e+f.$
$13!=2^{10}3^55^27\cdot11\cdot13$. For $\frac{13!}m$ to be a square, $m$ must contain the odd parts $3\cdot7\cdot11\cdot13$, times a square $k^2$ dividing $2^{10}3^45^2$.
So the sum is $3\cdot7\cdot11\cdot13\cdot(1+4+\cdots+4^5)(1+9+81)(1+25)=3\cdot7\cdot11\cdot13\cdot1365\cdot91\cdot26$.
With $1365=3\cdot5\cdot7\cdot13$, $91=7\cdot13$, $26=2\cdot13$, this is $2\cdot3^2\cdot5\cdot7^3\cdot11\cdot13^4$. The exponents add to $1+2+1+3+1+4=12$.
The sum of all positive integers $m$ such that $\frac{14!}{m}$ is a perfect square can be written as $2^a3^b5^c7^d11^e13^f,$ where $a,b,c,d,e,$ and $f$ are positive integers. Find $a+b+c+d+e+f.$