Skip to content

Instantly share code, notes, and snippets.

@dimnikolos
Created December 7, 2017 08:32
Show Gist options
  • Save dimnikolos/3dd06b88cc94b9b7678fadbfa157ffe5 to your computer and use it in GitHub Desktop.
Save dimnikolos/3dd06b88cc94b9b7678fadbfa157ffe5 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
999^2&=(999^2 - 1) + 1\\
999^2&=(999^2 - 1^2) + 1\\
&=(999-1)(999+1) + 1\\
&=998\cdot 1000 + 1\\
&=998000 + 1\\
&=998001
\end{align*}
\begin{align*}
998^2&=(998^2 - 4) + 4\\
&=(998^2 - 2^2) + 4\\
&=(998-2)(998+2) + 4\\
&=996\cdot 1000 +4\\
&=996000 + 4\\
&=996004
\end{align*}
\begin{align*}
997^2&=(997^2 - 9) + 9\\
&=(997^2 - 3^2) + 9\\
&=(997-3)(997+3) + 9\\
&=994\cdot 1000 + 9\\
&=994000 + 9\\
&=994009
\end{align*}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment