Why f is multiplied in solubility of salt constant
Notice that $f$ is equal to the maximum concentration of $\ce{M}$, which is unchanged as part of the acid-base equilibrium. On the other hand, the pH changes the concentration of the counterion in proportion to $f$. Therefore, the second term in the solubility product is scaled accordingly.