MathsReadCompetitive mathematics
Algorithmic puzzle · integer answereasy25 min

Colored annulus points

Lattice Geometry

Count integer lattice points (x,y) with 0<=x,y<=100 satisfying 900 < (x-45)^2+(y-55)^2 <= 1600 and x+y divisible by 3.

Solve using mathematics, algorithms, or your own code offline. Submit only the final integer here—no program, expression, graph, or written proof.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

How to approach this problem

Use squared distance rather than floating-point square roots. Check the inner and outer inequalities with their specified strictness, then apply the color congruence.

Worked example with different values

A point at distance 3 has squared distance 9. It is excluded from an annulus defined by 9 < r² ≤ 16, whereas one at distance 4 is included.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Number theory: divisors, gcd and modular arithmetic

Report a question or explanation issue

Back to problems →