This lecture is part of my Berkeley math 115 course "Introduction to number theory"
For the other lectures in the course see • Introduction to number theory (Berkel...
We give some applications of Gaussian integers to the binary quadratic form x^2+y^2.
The textbook is "An introduction to the theory of numbers" by Niven, Zuckerman, and Montgomery (5th edition).