Y by
Let
be a positive integer. The ordered pairs
where
are integers in
are each labeled with a positive integer less than or equal to
such that every label is used exactly
times and there exist integers
and
such that the following property holds: For any two lattice points
and
that are both labeled
, there exists an integer
such that
and
are both divisible by
. How many such labelings exist?














