I know that the hat matrix $H = X(X^T X)^{-1} X^T$, and that $\hat{Y} = HY$. When we have some non-zero constants that we multiply each respective predictor by, which just multiplies every column in the data matrix $X$ by the respective constant, the hat matrix stays the same. And so $\hat{Y}$ is the same as well. How can I prove that the hat matrix does not change?
I was told to think of a $p\times p$ matrix $V$ where the diagonal entries are the constants, and to make the new data matrix $XV$, and calculate the hat matrix like this, but I am still confused how to start.