David Meyer · @dmm
185 followers · 325 posts · Server mathstodon.xyz

A few minor improvements to this picture....

The pdf is here: davidmeyer.github.io/qc/tricks. The LaTeX source is here: overleaf.com/read/czsqywqhccfw.

As always, questions/comments/corrections/* greatly appreciated.

#binomialcoefficients #PascalsTriangle #math

Last updated 2 years ago

David Meyer · @dmm
183 followers · 322 posts · Server mathstodon.xyz

Been drawing some TikZ pictures this morning. It turns out it's pretty easy to draw Pascal's Triangle with TikZ:

%
% Draw Pascal's Triangle with binomial coefficients
%
\begin{figure}[H]
\centering
\begin{tikzpicture} [framed,scale=0.90]
\foreach \n in {0,...,8} {
\foreach \k in {0,...,\n} {
\node at (\k-\n/2,-\n) {
\ifnum \k = 2 {\color{blue} $\binom{\n}{\k}$}
\else {$\binom{\n}{\k}$}
\fi};
}
}
\end{tikzpicture}
\caption{Pascal's Triangle with Binomial Coefficients}
\label{fig:pascals_triangle_binomial_coefficients}
\end{figure}

The pdf is here: davidmeyer.github.io/qc/tricks. The LaTeX source is here: overleaf.com/read/czsqywqhccfw.

As always, questions/comments/corrections/* greatly appreciated.

#binomialcoefficients #PascalsTriangle #math

Last updated 2 years ago