In the plane the points with integer coordinates are the vertices of unit squares. The squares are coloured alternately black and white (as on a chessboard). For any pair of positive integers
and
, consider a right-angled triangle whose vertices have integer coordinates and whose legs, of lengths
and
, lie along edges of the squares. Let
be the total area of the black part of the triangle and
be the total area of the white part. Let
.
a) Calculate
for all positive integers
and
which are either both even or both odd.
b) Prove that
for all
and
.
c) Show that there is no constant
such that
for all
and
.







a) Calculate



b) Prove that



c) Show that there is no constant




It is known that
is the smallest angle in the triangle
. The points
and
divide the circumcircle of the triangle into two arcs. Let
be an interior point of the arc between
and
which does not contain
. The perpendicular bisectors of
and
meet the line
at
and
, respectively. The lines
and
meet at
.
Show that
.
Alternative formulation:
Four different points
are chosen on a circle
such that the triangle
is not right-angled. Prove that:
(a) The perpendicular bisectors of
and
meet the line
at certain points
and
respectively, and that the lines
and
meet at a certain point
(b) The length of one of the line segments
and
is the sum of the lengths of the other two.
















Show that

Alternative formulation:
Four different points



(a) The perpendicular bisectors of








(b) The length of one of the line segments


For each positive integer
, let
denote the number of ways of representing
as a sum of powers of 2 with nonnegative integer exponents. Representations which differ only in the ordering of their summands are considered to be the same. For instance,
, because the number 4 can be represented in the following four ways: 4; 2+2; 2+1+1; 1+1+1+1.
Prove that, for any integer
we have
.




Prove that, for any integer

