The idea

Integer solutions come from two tools: residues (for linear equations - one solution, then a fixed step) and factoring (for -type equations - divisor pairs of a constant). Counting lattice points in a region is a column-by-column sum.
Textbook vs exam method
Textbook method
Linear : solve modulo for one variable, write the parametric family, impose the bounds. Product equations: complete the rectangle and run through the divisors of (both signs for integers). : same-parity factor pairs. Regions: count integer for each integer .
Exam method
- Indore 2019 Q16. , ; gives : solutions.Indore 2019
- Indore 2019 Q19. : .Indore 2019
- Indore 2025. , ; smallest at the largest : .Indore 2025
- Indore 2024 Q7. diamond of radius : .Indore 2024
- Indore 2026. : columns : .Indore 2026
- JIPMAT 2023 Q15. ; only is an integer.JIPMAT 2023
Worked examples
Positive solutions of
, : .
, ordered solutions, unordered.
Pairs of natural numbers with
: .
Integer pairs with
.
; factor pairs : : solutions .
Traps
- Strict vs inclusive bounds; sign pairs; ordered vs unordered; natural vs whole; quadrant double counting.
Formulas
In the exam
- Reduce the equation modulo the smaller coefficient to find the residue class of one variable; list solutions by stepping.
- Any factors as ; count divisor pairs.
- For : odd - every factor pair works; - factor ; - no solution.
- Lattice counts: fix , count with (or ), add.
- Max of : load the variable with the smaller coefficient; min: load the one with the larger coefficient.
Before this
What the exams ask here
- count integer (x,y) with 4x + 7y = 3, |x|, |y| < 100 (Indore 2019 Q16)
- pairs of integers with sum = product (Indore 2019 Q19)
- min m + n with 7m + 11n = 200 (Indore 2025)
- pairs of naturals with x^2 - y^2 = N
- 1/x + 1/y = 1/12 natural solutions; 7(y + 1/y) - 2(y^2 + 1/y^2) = 9 (JIPMAT 2023 Q15)
- integer points with |x-5| + |y-5| <= 6 (Indore 2024 Q7); x^2 + y^2 <= 10 (Indore 2026)