Let \(f:\Z_7\to\Z_7\) be given by \(f(x)=3(x+1) \bmod 7\text{.}\) We have
\begin{align*}
f(0)\amp=3(0+1)\bmod 7 = 3\bmod 7 =3\\
f(1)\amp=3(1+1)\bmod 7 = 6\bmod 7 =6\\
f(2)\amp=3(2+1)\bmod 7 = 9\bmod 7 =2\\
f(3)\amp=3(3+1)\bmod 7 = 12\bmod 7 =5\\
f(4)\amp=3(4+1)\bmod 7 = 15\bmod 7 =1\\
f(5)\amp=3(5+1)\bmod 7 = 18\bmod 7 =4\\
f(6)\amp=3(6+1)\bmod 7 = 21\bmod 7 =0
\end{align*}
Thus \(f(\Z_7)=\Z_7\) and no element in the codomain has the same preimage. Hence the function \(f\) is invertible.
The graph of \(f\) is
\begin{equation*}
\{(x,f(x))\mid x\in\Z_7\}
=
\{(0,3),(1,6),(2,2),(3,5),(4,1),(5,4),(6,0)\}
\end{equation*}
and its graphical representation where the elements of the set are represented by black pixels is:
We obtain the graph of the inverse \(f^{-1}\) by swapping the order of the numbers in the ordered pairs in the graph of \(f\text{.}\) Thus the graph of \(f^{-1}\) is
\begin{equation*}
\{(3,0),(6,1),(2,2),(5,3),(1,4),(4,5),(0,6)\}
\end{equation*}
and its graphical representation is: