TeX source:
\begin{array}{l|lll} x & 1 & 2 & 7 \\ \hline f & 1 & 2 & 1 \end{array}