As @Miyase said, you can found all what you need to draw a TiKz picture on CTAN. This answer is only for a starting point for you.
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, calc}
\tikzset{circle node/.style = {circle,inner sep=1pt,draw, fill=white}
}
\begin{document}
\begin{tikzpicture}[scale=0.5]
\foreach \x in {0,...,9}
\foreach \y in {0,...,6}
{
\fill (\x,\y) circle (1pt);
}
\foreach \y in {0,...,6}
{
\fill (10,\y) circle (1pt);
}
\foreach \x in {0,...,8}
{
\fill (\x,7) circle (1pt);
}
\draw (0,0)--(9.5,0)--(9.5,6.5)--cycle;
\node at (0,0)[below]{$(0,0)$};
\node at (9.5,0)[below]{$(\frac{p}{2},0)$};
\node at (9.5,6.5)[above]{$(\frac{p}{2},\frac{q}{2})$};
\end{tikzpicture}
\end{document}
