Let $R$ be a commutative ring with unity. Let $M$ be an $R$-module. Then, consider $Hom_{\mathbb{Z}}(R, M)$ (note that the homomorphisms are as $\mathbb{Z}$ modules). This is an $R$ module in two different ways:
$(r*f)(x) = r*(f(x))$
$(r*f)(x) = f(rx)$
Are these the same? My intuition telling me no because if so, then $f(1)$ determines all of $f$, as follows: $f(r) = f(r1) = (r*f)(1) = r*(f(1))$
However, I can't seem to prove this. What's an example of when they are different?
Here’s an easy example showing that the actions are indeed different. Take $R=\mathbb Z[\epsilon]$, where $\epsilon^2=0$, and $M=\mathbb Z^2$. Then $\mathrm{Hom}_{\mathbb Z}(R,M)=\mathbb M_2(\mathbb Z)$.
The first action is induced from the $R$-action on $M$, so $\epsilon$ acts as zero on all matrices.
The second action comes from multiplication on $R$, so if we write $$ \begin{pmatrix}a&b\\c&d\end{pmatrix}\colon x+y\epsilon\mapsto (ax+by,cx+dy) $$ then $$ \epsilon\begin{pmatrix}a&b\\c&d\end{pmatrix} = \begin{pmatrix}b&0\\d&0\end{pmatrix}. $$