BW 05 Sol
BW 05 Sol
We shall show that there exists a positive integer N such that an consists of less than k + 1
decimal digits, ∀n ≥ N . Let ai be a positive integer which consists of exactly j + 1 digits,
that is,
10j ≤ ai < 10j+1 .
We need to prove two statements:
and hence ai+1 consists of less than k + 1 digits. To prove the second statement, notice that
ai consists of j + 1 digits, none of which exceeds 9. Hence ai+1 ≤ (j + 1) · 92005 and because
j ≥ k, we get
ai ≥ 10j > (j + 1) · 92005 ≥ ai+1 (j ≥ k),
which proves the second statement. It is now easy to derive the result from this statement.
Assume that a0 consists of k + 1 or more digits (otherwise we are done, because then it
follows inductively that all terms of the sequence consist of less than k + 1 digits, by the first
statement). It is obviously possible to construct a strictly decreasing sequence a 0 > a1 >
· · · > aN of positive integers such that aN has less than k + 1 digits (where N is the first
index having this property). By an easy induction, it follows that none of the numbers in
{aN , aN +1 , . . .} consists of more than k digits. This set contains infinitely many numbers
but none of these numbers exceeds 10k . By the Pigeonhole Principle, two elements of this set
must be equal, and we are done.
1
3. Note that
1 2 2
< − ,
ak ak+2 ak ak+1 ak+1 ak+2
because this inequality is equivalent to the inequality
1
ak+2 > ak + ak+1 ,
2
which is evident for the given sequence. Now we have
1 1 1 1 2 2 2 2 2
+ + + ··· + < − + − + ··· < = 4.
a1 a3 a2 a4 a3 a5 a98 a100 a1 a2 a2 a3 a2 a3 a3 a4 a1 a2
(a) P (x)+P (−x) 6≡ 0 and P (x)−P (−x) 6≡ 0. Then (P (x)+P (−x)) as well as (P (x)−P (−x))
are both non-constant polynomials and have a finite numbers of roots only, i.e. this case
cannot hold.
(b) P (x) + P (−x) ≡ 0. Obviously, P (0) = 0. Consider the infinite sequence of integers
a0 = 0 and an+1 = a2n + 1. By induction it is easy to see that P (an ) = an for all non-
negative integers n. Also, Q(x) = x has that property, i.e. P (x) − Q(x) is a polynomial
with infinitely many roots, i.e. P (x) ≡ x.
(c) P (x) − P (−x) ≡ 0. Then
for some integer n since P (x) is even and it is easy to see that the coefficient of x 2n must
be 1. n = 1 and n = 2 yield the solutions P (x) = x2 + 1 and P (x) = x4 + 2x2 + 2.
Remark: For n = 3 there is no solution, whereas for n = 4 there is the unique solution
P (x) = x8 + 6x6 + 8x4 + 8x2 + 5.
Alternative solution: Let Q(x) = x2 + 1. Then the equation that P must satisfy can
be written P (Q(x)) = Q(P (x)), and it is clear that this will be satisfied for P (x) = x,
P (x) = Q(x) and P (x) = Q(Q(x)).
R ≤ 1 is equivalent to
1 1 1 1 1 1 1 1 1
2+ 2+ + 2+ 2+ + 2+ 2+ ≤ 2+ 2+ 2+
b c a c a b a b c
1 1 1 1
and to 4 ≤ ab + ac + bc + abc . By abc = 1 and by the AM-GM inequality
s 2
1 1 1 3 1
+ + ≥3 =3
ab ac bc abc
2
6. Let N = q · K + r, 0 ≤ r < K, and let us number the cards 1, 2, . . . , N , starting from the one
at the bottom of the deck. First we find out how the cards 1, 2, . . . , K are moving in the deck.
If i ≤ r then the card i is moving along the cycle
i, K + i, 2K + i, . . . , (q − 1)K + i, (K + r + 1 − i),
K + (K + r + 1 − i), 2K + (K + r + 1 − i), . . . , (q − 1)K + (K + r + 1 − i),
7. Clearly there must be rows with some zeroes. Consider the case when there is a row with
just one zero; we can assume it is (0, 1, 1, 1, 1, 1). Then for each row (1, x2 , x3 , x4 , x5 , x6 ) there
is also a row (0, x2 , x3 , x4 , x5 , x6 ); the conclusion follows. Consider the case when there is a
row with just two zeros; we can assume it is (0, 0, 1, 1, 1, 1). Let nij be the number of rows
with first two elements i, j. As in the first case n00 ≥ n11 . Let n01 ≥ n10 ; the other subcase
is analogous. Now there are n00 + n01 zeros in the first column and n10 + n11 ones in the
first column; the conclusion follows. Consider now the case when each row contains at least 3
zeros (except (1, 1, 1, 1, 1, 1), if such a row exists). Let’s prove it is impossible that each such
row contains exactly 3 zeroes. Assume the opposite. As n > 2 there are at least 2 rows with
zeros; they are different, so their product contains at least 4 zeros, a contradiction. So there
are more then 3(n − 1) zeros in the array; so in some column there are more than (n − 1)/2
zeros; so there are at least n/2 zeros.
8. Answer: 48 squares.
Consider a diagonal of the square grid. For any grid vertex A on this diagonal denote by C
the farthest endpoint of this diagonal. Let the square with the diagonal AC be red. Thus,
we have defined the set of 48 red squares (24 for each diagonal). It is clear that if we draw
all these squares, all the lines in the grid will turn red.
In order to show that 48 is the minimum, consider all grid segments of length 1 that have
exactly one endpoint on the border of the grid. Every horizontal and every vertical line that
cuts the grid into two parts determines two such segments. So we have 4 · 24 = 96 segments.
It is evident that every red square can contain at most 2 of these segments.
9. Let us denote the number of ways to split some figure onto dominos by a small picture of this
figure with a sign #. For example, # = 2.
Let Nn =# (n rows); γn =# (n − 2 full rows and 1 row with 2 cells). We are going
to find a recurrent relation for the numbers Nn .
3
Observe that
# = # + # + # = 2# + # ,
# = # +# =# +# .
Nn = 2γn + Nn−2 ,
2γn−2 = Nn−2 − Nn−4 ,
2γn = 2γn−2 + 2Nn−2 .
Nn = 4Nn−2 − Nn−4 .
It is easy to find that N2 = 3, N4 = 11. Now by the recurrence relation it is trivial to check
that N6k+2 ≡ 0 (mod 3).
10. Answer: n = 11.
Taking the 10 divisors without prime 13 shows n ≥ 11. Consider the following partition of
the 15 divisors into 5 groups of 3 each with the property that the product of the numbers in
every group equals m.
{2 · 3, 5 · 13, 7 · 11},
{2 · 5, 3 · 7, 11 · 13},
{2 · 7, 3 · 13, 5 · 11},
{2 · 11, 3 · 5, 7 · 13},
{2 · 13, 3 · 11, 5 · 7}
If n = 11, then there is a group from which we take all three numbers, i.e. their product
equals m.
11. Assume that the circumcircles of triangles ADC and BEC meet at C and P . The problem is
to show that the line KL makes equal angles with the lines AC and BC. Since the line joining
the circumcenters of triangles ADC and BEC is perpendicular to the line CP , it suffices to
show that CP is the angle-bisector of ∠ACB.
E L
D
K
A B
P
4
Since the points A, P , D, C are concyclic, we obtain ∠EAP = ∠BDP . Analogously, we have
∠AEP = ∠DBP . These two equalities together with AE = BD imply that triangles AP E
and DP B are congruent. This means that the distance from P to AC is equal to the distance
from P to BC, and thus CP is the angle-bisector of ∠ACB, as desired.
12.
D0
D
N C
0
C
Y A0
A M B
X
B0
∠C 0 CQ = ∠B 0 BQ = ∠A0 AP = ∠D 0 DP .
5/2
Partition the rectangle into 3 rectangles of size 5/3 × 2 and two rectangles of size√5/2 × 1 as
shown above. It is easy to check that each has a diagonal of length less than 2 2, so five
circles can cover the five small rectangles and hence the 5 × 3 rectangle.
5
14. Answer: ∠P M Q = 90◦ .
1
Draw the parallelogram ABCA0 , with AA0 k BC. Then M lies on BA0 , and BM = BA0 . So
3
M is on the homothetic image (center B, dilation 1/3) of the circle with center C and radius
AB, which meets BC at D and E. The image meets BC at P and Q. So ∠P M Q = 90 ◦ .
15. Let A1 be the intersection of a with BD, B1 the intersection of b with AC, C1 the intersection
of c with BD and D1 the intersection of d with AC. It follows easily by the given right angles
that the following three sets each are concyclic:
16. It is sufficient to show the statement for q prime. We need to prove that
It is obvious that (n, q) = (n+1, q) = 1 (as n and n+1 cannot be divisible by q simultaneously).
Hence there exists a positive integer m such that mn ≡ 1 (mod q). In fact, m is just the
multiplicative inverse of n (mod q). Take s = m(n + 1). It is easy to see that
sp ≡ 1 (mod q).
Let t be the smallest positive integer which satisfies st ≡ 1 (mod q) (t is the order of s (mod
q)). One can easily prove that t divides p. Indeed, write p = at + b where 0 ≤ b < t. Then
a
1 ≡ sp ≡ sat+b ≡ st · sb ≡ sb (mod q).
Since p is the order of s (mod q), we have that p divides q − 1, and we are done.
(2m−1)2 +1
17. Answer: a = 2 where m is an arbitrary positive integer.
Let yn = 2xn − 1. Then yn = 2(2xn−1 xn−2 − xn−1 − xn−2 + 1) − 1 = 4xn−1 xn−2 − 2xn−1 −
2xn−2 + 1 = (2xn−1 − 1)(2xn−2 − 1) = yn−1 yn−2 when n > 1. Notice that yn+3 = yn+2 yn+1 =
2
yn+1 yn . We see that yn+3 is a perfect square iff yn is a perfect square. Hence y3n is a perfect
square for all n ≥ 1 exactly when y0 is a perfect square. Since y0 = 2a − 1, the result is
2
obtained when a = (2m−1) 2
+1
for all positive integers m.
18. Let x = 2s x1 and y = 2t y1 where x1 and y1 are odd integers, contrary to assumption. Without
loss of generality we can assume that s ≥ t. We have
2s+t+2 2s+2 x1 y1
z= = s−t .
2t (2s−t x
1 + y1 ) 2 x1 + y 1
6
If s 6= t, then the denominator is odd and therefore z is even. So we have s = t and
z = 2s+2 x1 y1 /(x1 +y1 ). Let x1 = dx2 , y1 = dy2 with (x2 , y2 ) = 1. So z = 2s+2 dx2 y2 /(x2 +y2 ).
As z is odd, it must be that x2 + y2 is divisible by 2s+2 ≥ 4, so x2 + y2 is divisible by 4. As x2
and y2 are odd integers, one of them, say x2 is congruent to 3 modulo 4. But (x2 , x2 + y2 ) = 1,
so x2 is a divisor of z.
19. Answer: Yes, it is possible.
Start with a simple Pythagorian identity:
32 + 4 2 = 5 2 .
Multiply it with 52
32 · 5 2 + 4 2 · 5 2 = 5 2 · 5 2
and insert the identity for the first
32 · (32 + 42 ) + 42 · 52 = 52 · 52
which gives
32 · 3 2 + 3 2 · 4 2 + 4 2 · 5 2 = 5 2 · 5 2 .
Multiply again with 52
32 · 3 2 · 5 2 + 3 2 · 4 2 · 5 2 + 4 2 · 5 2 · 5 2 = 5 2 · 5 2 · 5 2
32 · 32 · (32 + 42 ) + 32 · 42 · 52 + 42 · 52 · 52 = 52 · 52 · 52
that is
32 · 3 2 · 3 2 + 3 2 · 3 2 · 4 2 + 3 2 · 4 2 · 5 2 + 4 2 · 5 2 · 5 2 = 5 2 · 5 2 · 5 2 .
This (multiplying with 52 and splitting the first term) can be repeated as often as needed,
each time increasing the number of terms by one. Clearly, each term is a square number and
the terms are strictly increasing from left to right.
20. Answer: All numbers 2r 3s where r and s are non-negative integers and s ≤ r ≤ 2s.
Let m = (p1 + 1)(p2 + 1) · · · (pk + 1). Can assume that pk is the largest prime factor. If pk > 3
then pk cannot divide m, because if pk divides m it is a prime factor of pi + 1 for some i, but
if pi = 2 then pi + 1 < pk , and otherwise pi + 1 is an even number with factors 2 and 21 (pi + 1)
which are both strictly smaller than pk . Thus the only primes that can divide n are 2 and
3, so we can write n = 2r 3s . Then m = 3r 4s = 22s 3r which is divisible by n if and only if
s ≤ r ≤ 2s.