MathDB
2023 Fall Theme p4C

Source:

December 23, 2023
2023FAlLthemegeo

Problem Statement

The equation of line 1\ell_1 is 24x7y=31924x-7y = 319 and the equation of line 2\ell_2 is 12x5y=12512x-5y = 125. Let aa be the number of positive integer values nn less than 20232023 such that for both 1\ell_1 and 2\ell_2 there exists a lattice point on that line that is a distance of nn from the point (20,23)(20,23). Determine aa.
Proposed by Christopher Cheng
Solution. 6\boxed{6} Note that (20,23)(20,23) is the intersection of the lines 1\ell_1 and 2\ell_2. Thus, we only care about lattice points on the the two lines that are an integer distance away from (20,23)(20,23). Notice that 77 and 2424 are part of the Pythagorean triple (7,24,25)(7,24,25) and 55 and 1212 are part of the Pythagorean triple (5,12,13)(5,12,13). Thus, points on 1\ell_1 only satisfy the conditions when nn is divisible by 2525 and points on 2\ell_2 only satisfy the conditions when nn is divisible by 1313. Therefore, aa is just the number of positive integers less than 20232023 that are divisible by both 2525 and 1313. The LCM of 2525 and 1313 is 325325, so the answer is 6\boxed{6}.