The right triangle bound by the x and y axes and the line $3x-y=6$ contains 2 lattice points in its interior. How many lattice points will be contained in the interior of a triangle bound by the x and y axes and the line $3x-y=24$?
So I first convert the line in question to slope intercept form, which is $y=3x-24$. Thus, this means that the line in question has a y-intercept of $-24$ and an x-intercept of $8$. This means that the line in question makes a right triangle with a dilation of $4$ from the origin in relation to the triangle the problem gives. I've heard something like that when a side is dilated with a factor of $r$, then the area is dilated with a factor of $r^2$. So I multiply $2$ by $4^2=16$ which gives me $32$. This is wrong, so what exactly is wrong with my reasoning? How can I solve this problem?
If you plot the line $3x - y = 24$, you will see that the triangular region in question is located in the fourth quadrant, namely $x > 0$, $y < 0$. So the number of lattice points in the interior of the triangle is equal to the number of ordered integer pairs $(x,y)$ with $x > 0$ and $y < 0$ that satisfy $3x - y < 24$. The direction of inequality is easily found by noting that the set of points we wish to count lies on the same side of the line $3x - y = 24$ as the origin $(0,0)$, thus when substituting $(x,y) = (0,0)$, the inequality must hold.
Now, when $y = 0$, $x < 8$, so the range of permissible $x$ values is $x \in \{1, 2, \ldots, 7\}$. For such an $x$, the range of permissible $y$ values is $0 > y > 3x-24$. The integers in this range are $\{3x-24 + 1, 3x-24+2, \ldots, -1\}$. How many are there? Clearly, there are $23-3x$ of them.
So the total number of lattice points in the interior of the triangle is $$\sum_{x=1}^7 (23-3x) = 77.$$