MathDB
Problems
Contests
National and Regional Contests
Korea Contests
Korea Junior Mathematics Olympiad
2002 Korea Junior Math Olympiad
4
4
Part of
2002 Korea Junior Math Olympiad
Problems
(1)
2002 KJMO P4
Source: KJMO 2002
6/29/2024
For two non-negative integers
i
,
j
i, j
i
,
j
, create a new integer
i
#
j
i \# j
i
#
j
defined as the following: Express the two numbers in base
2
2
2
, and compare each digit. If their
k
k
k
th digit is the same, then the
k
k
k
th digit of
i
#
j
i \# j
i
#
j
is
0
0
0
. If their
k
k
k
th digit is different, then the
k
k
k
th digit of
i
#
j
i \# j
i
#
j
is
1
1
1
(of course we are talking in base
2
2
2
). For instance,
3
#
5
=
6
3 \# 5=6
3#5
=
6
. Show that for arbitrary positive integer
n
n
n
, the number can be expressed with finite operations of
#
\#
#
s and integers of the form
2
k
ā
1
2^k-1
2
k
ā
1
.
number theory