MathDB
Vietnam TST 2014 - Problem 2

Source: Vietnam TST 2014

February 27, 2015
analytic geometrycombinatorics

Problem Statement

In the Cartesian plane is given a set of points with integer coordinate T={(x;y)x,yZ; x,y20; (x;y)(0;0)} T=\{ (x;y)\mid x,y\in\mathbb{Z} ; \ |x|,|y|\leq 20 ; \ (x;y)\ne (0;0)\} We colour some points of T T such that for each point (x;y)T (x;y)\in T then either (x;y) (x;y) or (x;y) (-x;-y) is coloured. Denote N N to be the number of couples (x1;y1),(x2;y2) {(x_1;y_1),(x_2;y_2)} such that both (x1;y1) (x_1;y_1) and (x2;y2) (x_2;y_2) are coloured and x12x2(mod41),y12y2(mod41) x_1\equiv 2x_2 \pmod {41}, y_1\equiv 2y_2 \pmod {41} . Find the all possible values of N N .