Slični zadaci
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


Let
be a square with sides length
. Let
be a path within
which does not meet itself and which is composed of line segments
with
. Suppose that for every point
on the boundary of
there is a point of
at a distance from
no greater than
. Prove that there are two points
and
of
such that the distance between
and
is not greater than
and the length of the part of
which lies between
and
is not smaller than
.





















Five students
took part in a contest. One prediction was that the contestants would finish in the order
. This prediction was very poor. In fact, no contestant finished in the position predicted, and no two contestants predicted to finish consecutively actually did so. A second prediction had the contestants finishing in the order
. This prediction was better. Exactly two of the contestants finished in the places predicted, and two disjoint pairs of students predicted to finish consecutively actually did so. Determine the order in which the contestants finished.


