I've uploaded a pic of my problem below. I really just don't understand at all how to figure this out. The first problem is about proving how the number of lattice points on a line segment is equal to the gcd(a2 - a1, b2-b1) + 1. And the second problem is about proving the number of boundary lattice points between 3 points is equal to the gcd(a1, b1) + gcd(a2,b2), + gcd(a2-a1, b2-b1).
I honestly just would like someone to help walk me through this step-by-step. I would really like to understand how to write this proof and my teacher just blazed past this.
I honestly just would like someone to help walk me through this step-by-step. I would really like to understand how to write this proof and my teacher just blazed past this.