Problem and Solutions
Problem and Solutions
Problems
50. Proposed by Anastasios Kotronis, Athens, Greece. Show that
+∞
X (−1)k 1
= + O(n−1 ln−2 n) n → +∞.
ln(n + k) 2 ln n
k=0
52. Proposed by Yuanzhe Zhou, The School of Physics and Technology (SPT) at
Wuhan University. Let a, b, c > 0, prove that,
a 2 b 2 c 2 3
cos + cos + cos >
b+c a+c a+b 2
c 2010 Mathproblems, Universiteti i Prishtinës, Prishtinë, Kosovë.
118
119
then
X1 2α 27n3
> + 2
x 3 9n α + α3
cycl
where n is a natural number.
56. Proposed byJosé Luis Dı́az–Barrero, BARCELONA TECH, Barcelona, Spain.
Let n ≥ 2 be a positive integer. Find all possible values of the number k such that
2
Fn2 (1 + Fn+1 2
Fn+2 2
) Fn+2 2
(1 + Fn2 Fn+1 ) F 2 (1 + Fn+2
2
Fn2 )
+ = k + n+1
Fn−1 Fn+1 Fn Fn+1 Fn−1 Fn
Solutions
No problem is ever permanently closed. We will be very pleased considering for
publication new solutions or comments on the past problems.
Prove that
∞
X ζ(2p + 1) − 1 γ 7
=−
− 6 ln A + ln 2 + ,
p=1
p+2 2 6
P∞
where ζ is the Riemann zeta function defined by ζ(s) = k=1 1/k s for <(s) > 1.
Since
∞ ∞
!
X z 2p+1 1 X z 2r z4 1 z4
2 2 2
= 3 −z − =− 3 ln(1 − z ) + z +
p=1
p+2 z r=1
r 2 z 2
then
∞
X ∞ X
X ∞ ∞
X
ζ(2p + 1) − 1 1 1 3 1 1 1
= = − k ln 1 − + +
p=1
p+2 p=1
k 2p+2 p + 2 k2 k2 2k 4
k=2 k=2
Now, we have
n
X X
n n
X n
X
3 1 3 3
k ln 1 − 2 = k ln(k + 1) + k ln(k − 1) − 2 k 3 ln k
k
k=2 k=2 k=2 k=2
Xn n
X n
X
= (k + 1)3 ln(k + 1) + (k − 1)3 ln(k − 1) − 2 k 3 ln k
k=2 k=2 k=2
n
X
+ (3(k − 1) ln(k − 1) + 3(k + 1) ln(k + 1))
k=2
Xn
+ 3(k − 1)2 ln(k − 1) − 3(k + 1)2 ln(k + 1)
k=2
Xn
+ (ln(k − 1) − ln(k + 1))
k=2
122
and
n
X
1
k 3 ln 1 − 2 = (n + 1)3 ln(n + 1) − n3 ln n − 8 ln 2
k
k=2
n
X
+6 k ln k − 3n ln n + 3(n + 1) ln(n + 1) − 6 ln 2
k=1
+ −3n2 ln n − 3(n + 1)2 ln(n + 1) + 12 ln 2 − ln n − ln(n + 1) + ln 2
n
X n 1
=6 k ln k − 3n2 ln n + n2 − 3n ln n − − ln n +
2 3
k=1
Moreover
n
X n
X
n(n + 1) 1 1 γ 1
k= − 1, = ln n + − + o(1)
2 2k 2 2 2
k=2 k=2
x 1 ln(1 − x2 )
= − − −
2 x x3
Now, we have
+∞
X ζ(2p + 1) − 1 X 1 X 1 X X n−1 2p+1
= − 1 =
p=1
p+2 p+2 n2p+1 p+2
p≥1 n≥1 p≥1 n≥2
X X n−1 2p+1 X 1
1
3
= − + n + n ln 1 − 2
p+2 2n n
n≥2 p≥1 n≥2
XN XN
1 1 1 1
= − lim + n + n3 ln 1 − 2 = − lim + n + n3 ln 1 − 2
N →+∞
n=2
2n n N →+∞
n=2
2n n
N 2 n 3 !!
HN − 1 (N + 2)(N − 1) Y n −1
= − lim + + ln
N →+∞ 2 2 n=2
n2
HN N2 N 3
= − lim + + − + ln AN
N →+∞ 2 2 2 2
123
But
YN N
(n − 1)n Y (n + 1)n
3 3
AN =
n=2
n n3 n=2
n n3
N −1 N
1 Y (k+1)3 −k3 (N + 1)N Y (k−1)3 −k3
3
= k · k
N N3 223
k=2 k=3
N3 N
Y
1 (N + 1)
= · k 6k
2 N (N +1)3
k=1
N
!6
Y 3 2
(N + 1)N N 3N +3N +1/2
−N 2 /2−N/2−1/12 N 2 /4 k
= N e k · ,
k=1
2N (N +1)3 e3N 2 /2
as desired.
Also solved by Omran Kouba, Higher Institute for Applied Sciences and
Technology, Damascus, Syria; and the proposer.
46. Proposed by Anastasios Kotronis, Athens, Greece, and Serafeim Tsipelis, Ion-
nina, Greece (Jointly). Evaluate
+∞
X ζ(2n)
(−1)n−1 ,
n=1
n
where ζ is the Riemann zeta function.
is an even function, and hence ec0 +c1 z = ec0 −c1 z . Hence c1 = 0. Putting z → 0 in
the above expression we conclude that ec0 = 1, and hence g(z) = 0. Thus,
Y∞
z2
sinh z = z 1+ .
n=1
(nπ)2
Finally,
Y∞
sinh π 1
= 1+ 2 .
π n=1
n
Also solved by Omran Kouba, Higher Institute for Applied Sciences and
Technology, Damascus, Syria; Paolo Perfetti, Department of Mathemat-
ics, Tor Vergata University, Rome, Italy; AN-anduud Problem Solving
Group, Ulaanbaatar, Mongolia; Konstantinos Tsouvalas, University of
126
Athens, Athens, Greece; Joaquin Rivero Rodriguez, Spain; and the pro-
poser.
Clearly,
[n y o
G = {(0, 0)} (x, y) ∈ R∗ × R : f = 0 ,
x2
where f (t) = t4 − 10t3 + 25t2 − 50t + 24. Now, a simple study of the variations
of f shows that the equation f (t) = 0 has exactly two real zeros λ1 ∈ (0, 1) and
λ2 ∈ (7, 8). A numeric evaluation shows that λ1 ≈ 0.63270759 and λ2 ≈ 7.49826796.
Cosequently, G is the union of the two parabolas P1 and P2 of equations y = λ1 x2
and y = λ2 x2 respectively.
48. Proposed by Florin Stanescu, School Cioculescu Serban, Gaesti, jud. Dambovita,
Romania. Let f : (0, ∞) → (0, ∞) be a differentiable function for which there exist
real numbers a and b, 0 < a < b such that
R b f (x) f (b) f (a)
(i): a 2 dx = −
0
x b a
f (a) 2
(ii): =
f (a) a
(a) Find an example of a function that satisfies the preceding conditions
(b) Show that there exists a c ∈ (a, b) such that
f (c) c 2 0
f (c)
(c−a) f (c) − 2c
= e
f (a) a
Z b
f (b) f (a) f (x)
= − − dx = 0
b a a x2
0 0
f (x) f (x)
Case 1. If ≥ 0 or ≤ 0 for all x ∈ (0, ∞). Then, considering the
x2 x2
0
f (x)
above result, we get = 0 for all x ∈ (0, ∞) ⇒ f (x) = kx2 , with k ∈ R in
x2
which case, the condition (b) holds for every c ∈ (0, ∞).
X
n 2
X
n X
n n Xn xi
xi 2 X xi xi 2
= xi xi+1 ⇒ = ≥ ni=1
xi xi+1 x x x X
i=1 i=1 i=1 i+1 i=1 i i+1
xi xi+1
i=1
Furthermore
X
n 2
n Xn xi
X xi xi 2 i=1
−3= −3≥ n −3
x xx X
i=1 i+1 i=1 i i+1
xi xi+1
i=1
n
X n
X n
X
xi 2 + 2 xi xj 3 xi xi+1
i=1 1≤i<j≤n i=1
= n − n
X X
xi xi+1 xi xi+1
i=1 i=1
n
X n
X n
X n
X n
X X
n
2 2 1 2
xi + 2 xi xi+1 3 xi xi+1 xi − xi xi+1 2 (xi − xi+1 )
i=1 i=1 i=1 i=1 i=1 i=1
≥ n − n ≥ n = n
X X X X
xi xi+1 xi xi+1 xi xi+1 xi xi+1
i=1 i=1 i=1 i=1
129
v v
uY uY
u n u n
nt
n
(xi − xi+1 )2 t
n
(xi − xi+1 )2
1 i=1 n i=1
≥ n = n
2 X 2 X
xi xi+1 xi xi+1
i=1 i=1
The last inequality is based on the well-known AM-GM inequality
√
a1 + a2 + . . . an ≥ n n a1 a2 . . . an
or equivalently,
X X X ca2 X
a2 ≥ ab and 3× ≥3× ab
b
cyclic cyclic cyclic cyclic
The first inequality is well-known. For the second, we may assume WLOG that
a ≥ b ≥ c so cb ca ba
a ≤ b ≤ c Since both sequences are sorted in the opposite way by
applying the rearrangement inequality, we get
ca2 ab2 bc2
ab + bc + ca ≤+ +
b c a
Equality holds if and only if a = b = c and we are done.
MATHCONTEST SECTION
This section of the Journal offers readers an opportunity to solve interesting and ele-
gant mathematical problems mainly appeared in Math Contest around the world
and most appropriate for training Math Olympiads. Proposals are always wel-
comed. The source of the proposals will appear when the solutions be published.
Proposals
36. Find all positive integers n such that 17n−1 + 19n−1 divides 17n + 19n .
37. Let α, β and γ be three distinct complex numbers. Show that they are collinear
if, and only if, Im(αβ + βγ + γα) = 0.
39. The students of a University Course in Mathematics take their exams in Calcu-
lus, Algebra, Physics and Geometry. It is known that 73% passed Calculus exam,
82% passed Algebra, 77% passed Physics and 89% passed Geometry. At least, how
many students have passed the exam of all four subjects?
Solutions
32. Two circles C1 and C2 have in common two points X and Y . We draw a
line that cuts C1 at points A and B. Next we draw the lines AX, AY which cut
C2 at points AX and BY and lines BX, BY which cut C2 at points BX and BY
respectively. Show that the three lines AB, AX BY and AY BX are parallel.
Q BX
AX
C1 X
BY
B Y
P
C2
AY
So, we have
\ = XA
BAY \ \ \
Y BX + Y A Y X = Y A Y BX
\ and Y \
Since line AAY cuts lines AB and AY BX and the angles BAY AY BX are
equal, then lines AB and AY BX are parallel.
Now, we only need to see that AX BY is also parallel to these two lines. It will be
suffice to see that the angles AX\ BY BX and AY\ BX BY are equal. We know that
AX\ BY BX is equal to AX \ XBX by spanning arc. Furthermore, the last one is equal
\ because they are angles opposite by the vertex. Likewise, AY\
to AXB BX BY is
equal to A\Y Y B Y , which is equal to \
AY B. Finally, since \
AXB = \
AY B by spanning
\ \
arc, then AX BY BX = AY BX BY , and the three lines AX BY , AY BX and AB are
parallel. 2
33. Four dice are thrown at the same time on a table. Find the probability that the
sum of the points appeared in the upper faces lies between 14 and 18 points.
34. Let P be an interior point of triangle ABC and let HA , HB , HC be the or-
thocenters of triangles P BC, P AC, and P AB, respectively. Prove that triangles
HA HB HC and ABC have the same area.
A H
C
C
c A
b H
c
b
A a a
C B C A B
this case is cot A < 0. Likewise, we can obtain the distances from H to the acute
vertices (angles) of a right or obtuse triangle ABC.
Joining the arbitrary point with the vertices A, B, C we get the triangles P AB, P BC,
and P CA. Let α = ∠BP C, β = ∠AP B, γ = ∠AP C. Obviously α + β + γ = 360◦ .
Al least two of these three angles are obtuse and the other is obtuse, right or acute.
So we will examine
Cuando these
unimos el punto three cases
arbitrario P conseparately.
los vértices A, B y C del triángulo obtenemos
los tres triángulos P AB, P BC y P CA.
Sean α = ∠BP C, β = ∠AP C, γ = ∠AP B. Evidentemente, α + β + γ = 360 . De estos ◦
(i) Suppose that the three angles are obtuse. Then, we have P HA = −a cot α
tres ángulos, com mı́nimo dos son obtusos. El otro puede ser obtuso, recto o agudo.
C = −c cot
and P HEstudiaremos los γ
treson account
casos of the preceding. Notice that the angle y =
per separado.
∠HA P H1)C = 180 ◦
− ∠AP C = 180 ◦
− B because the sides HA P dicho
Supongamos que los tres ángulos son obtusos (Figura 1). Por lo que hemos
and HC P are,
respectively, perpendicular
al principio tenemos P HA to = −athe sides
cot α y P HBC and
C = −c cot γ.AB and one
Fijémonos que elisángulo
obtuse and the
y = ∠H
other acute. AP H
The C = 180
area A(P−H∠AP
◦
C = 180◦ − B ya que los lados H P y HC P son,
A HC ) of triangle P HA HC is A
respectivamente, perpendiculares a los lados, BC y AB y un es obtuso y el otro es
agudo. P H A P H C sin y ac cot α cot γ sin B
A(P H HCA(P
ElAárea ) =HAHC ) del triángulo P HA=HC es, obviamente, = A(ABC) cot α cot γ
2 2
P H A P H C sin y ac cot α cot γ sin B
A(P HA HC ) = = = A(ABC) cot α cot γ.
2 2
HA
A
z
γ
y Figura 1
β
αP
x
HC
B C
HB
Sumando, pues, las áreas de los tres triángulos P HA HB , P HB HC y P HC HA obtenemos
A(HA HB HC ) = A(P HA HB ) + A(P HB HC ) + A(P HC HA ) i
Adding up the areas of the three triangles
P HA HB , P HB HC y P HC HA we obtain
A(H H H ) = A(ABC) cot α cot β + cot β cot γ + cot γ cot α .
A(HA HB HAC B) =C A(P HA HB ) + A(P HB HC ) + A(P HC HA ) and
Como que α + β = 360 − γ, tenemos que cot(α + β) = − cot γ o, equivalentemente,
1 − cot α cot β
cot γ = − cot(α + β) =
cot α + cot β
o bien, cot α cot β + cot β cot γ + cot γ cot α = 1. (*)
De aquı́ resulta A(HA HB HC ) = A(ABC).
2) Supongamos que uno de los ángulos es recto, per ejemplo β = 90◦ (Figura 2).
Entonces HB = P y
P H A P H C sin y ac cot α cot γ sin B
134
A(HA HB HC ) = lA(ABC) cot α cot β + cot β cot γ + cot γ cot α
Since α + β = 360 − γ, then we have cot(α + β) = − cot γ or, equivalently,
1 − cot α cot β
cot γ = − cot(α + β) =
cot α + cot β
or
cot α cot β + cot β cot γ + cot γ cot α = 1 (1)
from which follows A(HA HB HC ) = A(ABC).
(ii) Assume that one of the angles is right, say β = 90◦ (Figura 2). Then HB = P
and
P H A P H C sin y ac cot α cot γ sin B
A(HA HB H = A(HAahora
3) C )Supongamos P HCque )= uno de los ángulos α, β, γ =
es agudo, por ejemplo, AP = A(ABC) cot α cot γ
C=
2 2
β < 90◦ (Figura 3). El punto P es exterior al triángulo H H H y tenemos A(H H H ) =
A B C A B C
A(P HA HC ) − A(P HA HB ) − A(P HC HB ).
HA
Figura 2
HA
A
A Figura 3
HB
P = HB
P
B C B C
HC
HC
35. Compute
Z n
1 n2 + x2
lim dx
n→∞ n3 0 5−x + 7
135
Proof. Since the function h(x) = f (x) − ` tends to zero when x → ∞, then
Z x Z x Z
1 n 1 n ` n x
f (x)g dx = h(x)g dx + g dx (2)
n 0 n n 0 n n 0 n
Since g(x) is continuous in [0, 1], then |g(x)| ≤ M for some M ∈ R and
Z x Z
1 n M n
h(x)g dx ≤ |h(x)| dx (3)
n 0 n n 0
If H(x) is a primitive of |h(x)| then, applying L’Hospital’s rule, we have
H(n)
lim = lim |h(x)| = 0
n→∞ n x→∞
and the RHS of (3) tends to zero when n → ∞. Now, setting x/n = t, we have
Z Z 1
` n x
g dx = ` g(t) dt
n 0 n 0
and from (1) the proof immediately follows.
1
Setting f (x) = −x and g(x) = 1 + x2 into the preceding Lemma and taking
5 +7
1 1
into account that lim −x = , we get
x→∞ 5 +7 7
Z n 2 Z
1 n + x2 1 1 1 x3 1 4
lim 3 −x
dx = g(x) dx = +x =
n→∞ n 0 5 +7 7 0 7 3 0 21
MATHNOTES SECTION
Abstract. The paper first proves several inequalities related with the floor func-
tion, and then deduces and proves a mean-value formula for the floor function with
an integer variable. The inequalities and the formulae are useful in some aspects
related to analysis and computation of the floor function.
1. Introduction
The floor function and the ceiling function are two special functions that have
integer values, and they are widely applied in number theory, discrete mathematics,
calculus and computer science. A general introduction to the two functions can be
seen in detail in Graham’s book [1]. Readers can see that the properties of the
two functions are miraculous and fascinating. However, it also can be seen that
there still remain quite a lot of problems for us to study. Due to having discrete
characteristics of integers, the two functions are still lack of analytic tools like the
mean-value theorem in calculus to analyze their intermediary status. Hence it is
worth to draw a mean-value theorem for either of the two functions.
In a study on problems of binary trees, I found and proved the following formula
j
α+δ α k δ−1 1
= + +
2z(α) 2z(α) 2z(α) 2
Since the previous expression is quite similar to the formula f (x0 + ∆x) = f (x0 ) +
f 0 (ξ)∆x in calculus, I called it a mean-value formula of the floor function. This
paper mainly presents the way to obtain and to prove it.
2. Preliminaries
This section presents some necessary preliminaries for later sections.
2.1. Definition and Symbols. The floor function of a real number x is denoted
by bxc and it satisfies bxc ≤ x < bxc + 1; the fractional part of x is denoted by
{x} and it satisfies x = bxc + {x}; and the ceiling function of x is denoted by dxe
verifying x ≤ dxe < x + 1. The function z(α), which is defined in [2], represents
the position of the first 0-bit that occurs from the least significant bit (lsb) of α’s
binary representation, e.g., z(0) = z((00000000)2 ) = 1, z(1) = z((00000001)2 ) =
2, z(83) = z((01010011)2 ) = 3.
2.2. Lemmas. The following lemmas are found respectively in Graham’s book [1],
and Wang’s paper[2].
Lemma 1. For arbitrary real numbers x, y and an integer n, it holds
(P1): bxc + byc ≤ bx + yc ≤ bxc + byc + 1
137
3. Main Results
In the following we present our main results. We begin with (see [4])
Theorem 1. For arbitrary real numbers x, y, it holds
i. bxc > byc ⇒ x > y; bxc < byc ⇒ x < y
ii. x ≤ y ⇒ bxc ≤ byc ; x ≥ y ⇒ bxc ≥ byc
The following result shows the case bxc = byc.
Theorem 2. For a real number ξ and a real number δ > 0,if bξ + δc = bξc, then
for an arbitrary real number ω such that 0 ≤ ω ≤ δ, it holds
bξ + ωc = bξc
For a real number ρ < 0, if bξ + ρc = bξc, then for an arbitrary real number η such
that ρ ≤ η ≤ 0, it holds
bξ + ηc = bξc
Proof. Since 0 ≤ ω ≤ δ, then
bξc ≤ ξ ≤ ξ + ω ≤ ξ + δ < bξ + δc + 1
and the condition bξ + δc = bξc becomes
bξc ≤ ξ + ω < bξc + 1
That is the definition of the floor function. Next, we prove the second conclusion.
Indeed, by the condition ρ < 0 and ρ ≤ η ≤ 0, yields
bξ + ρc ≤ ξ + ρ ≤ ξ + η ≤ ξ < bξc + 1
Considering bξ + δc = bξc, it immediately leads to
By the properties (P2) and (P3) of lemma 1 and referring to (7), it holds
jαk
α−1 1 α 1 1 α 1 1 α 1
+ = + − < + − +1 = + +1 = +1
2I 2 2I 2 2I 2I 2 2I 2I 2 2I
Thus the formula (8) holds, and it leads to
jαk
α+1 1 α+1 1 α+1 1
I
+ = I
− + 1 = I
− +1= I +1 (9)
2 2 2 2 2 2 2
Furthermore, it holds
jαk jαk
α+1 1 α+1 1
I
− = I
+ −1= I +1−1= I (10)
2 2 2 2 2 2
The formulas (7) (8) (9) (10) show that the theorem 4 holds in the case I > 1.
Hence theorem is proven.
By theorem 4, we know that the expression 2α−1
z(α) satisfies
j k
α−1 α −1, z(α) = 1
= z(α) +
2 z(α) 2 0, z(α) > 1
Theorem 5. Let α ≥ 0, δ and χ be integers such that χ = ..., −3, −2, −1, 0, 1, 2, 3, ...,
z(α) z(α)
(χ − 21 ) × 2 < δ ≤ (χ + 12 ) × 2 ; then it holds
α+δ α
= +χ (11)
2z(α) 2z(α)
Proof. For convenience,we use the symbol v(α, δ) to denote 2α+δ
z(α) , use the symbol
z(α) z(α)
Iχ to denote the interval (χ − 12 ) × 2 < δ ≤ (χ + 21 ) × 2 and keep using
I = z(α). Note that the condition of the theorem 5 is the same as that of the
theorem 4; hence the conclusions drawn in the theorem 4 can be directly adopted
here. According to thetheorem 2, it is merely necessary to prove that v(α, δ) takes
an identical value 2αI + χ, which merely depends upon α and χ, on the whole
interval Iχ . Also by the theorem 2, this is a job to compute the values of v(α, δ) at
five points δ = (χ − 12 ) × 2I , δ = (χ − 12 ) × 2I + 1, δ = χ × 2I , δ = (χ + 21 ) × 2I and
δ = (χ + 12 ) × 2I + 1, as follows.
(i). When δ = (χ − 12 ) × 2I , it yields
j α+(χ− 12 )×2I k
v(α, δ) = α+δ 2I = 2I
(12)
= 2αI + χ − 21 = χ + 2αI − 21 = χ − 1 + 2αI
(ii). When δ = (χ − 12 ) × 2I + 1, it yields
α+δ j k
α+(χ− 12 )×2I +1
v(α, δ) = 2I
= 2I
(13)
α+1 1
α+1 1
α
= 2I
+χ− 2 =χ+ 2I
− 2 =χ+ 2I
I
(iii). When δ = χ × 2 , it yields
j k jαk
α+δ α + χ × 2I α
v(α, δ) = = = + χ = χ + (14)
2I 2I 2I 2I
140
Obviously,
j the
k results in (13),(14) and (15) show that v(α, δ) does take an identical
value of 2αI + χ on the whole interval Iχ , and the value merely depends upon α
and χ since I = z(α) depends on α . Note that the results
j k(12) and (16) also imply
that, for a fixed χ , v(α, δ) takes an identical value of 2αI + χ − 1 on the interval
j k
left to Iχ , and takes an identical value 2αI + χ + 1 on the interval right to Iχ .
j k
Hence, as χ changes, it is true that v(α, δ) does take the value of 2αI + χ on every
interval Iχ . This ends the proof of the theorem 5.
By the theorem 5, the relationship between the function v(α, δ) and the variable δ
can be illustrated by figure 1. Through the figure, it gets to know that the length
of the interval Iχ is 2I . By expressing the interval Iχ in its equivalent form
Iχ = (−2I−1 + χ × 2I , 2I−1 + χ × 2I ]
it shows that the function v(α, δ) changes with the interval I0 = (−2I−1 , 2I−1 ] to
be a basic unit. We call the interval I0 a principal interval since the property of
the function v(α, δ) on Iχ can be translated from the property on it.
Figure 1. Relationship between the variable δ and the function v(α, δ).
j α k δ − 1 1
α+δ
= z(α) + z(α) + (17)
2z(α) 2 2 2
Proof. Keep using the symbol I = z(α) and suppose δ ∈ Iχ without loss of
generality; then by the theorem 5, it yields
1 I 1 I
(χ − ) × 2 < δ ≤ (χ + ) × 2 (18)
2 2
Performing a simple transformation on (18) leads to
δ 1 δ 1
I
− ≤χ< I +
2 2 2 2
That is
δ 1 δ 1
− ≤χ< I − +1
2I 2 2 2
Referring to definition of the ceiling function yields
δ 1
χ= I −
2 2
By the properties (P6) and (P3) of the lemma 1, it follows
δ 1 δ − 2I−1 δ − 2I−1 − 1 δ−1 1 δ−1 1
− = = + 1 = − + 1 = +
2I 2 2I 2I 2I 2 2I 2
δ l I−1
m j I−1 I
k
2Ij
− 12 = δ−22I = δ−2 2I+2 −1
I−1
k
= δ−2 2I −1 + 1 = δ−1 2I
+ 12
Hence the theorem 6 holds.
4. Computer Test
Computations related to this paper can be tested on personal computers. The
C-language program is as follows.
\#include"math.h"
int GetI(int a) /* Find the smallest I that fits $0\leq a mod 2^i < 2^{(i-1)}$ */
\{
int i,I;
for(i=1;;i++)
\{
if(a\%\_2i$<$\_2i\_1)
\{
142
break; \}
\}
return I;
\}
\{
int U,X,Y;
int \_2i;
U=(int)floor((a+delta)/\_2i);
X=(int)floor(delta/\_2i);
Y=(int)floor((delta-1)/\_2i+0.5);
X+=Y;
void main()
\{
int I,\_2i,i;
for(i=10000;i<20000;i++)
\{I=GetI(i);
for(int j=-i;j$<=$i;j++)Test(i,j,I);
\}
printf("Finished!");
getchar();
\}
\fi
143
References
[1] R. L. Graham, D. E. Knuth and O. Patashnik.Integer Functions. Ch.3 in Concrete Math-
ematics: A Foundation for Computer Science, 2nd ed. Reading, MA: Addison-Wesley, pp.
67-101, 1994, ISBN 0-201-55802-5.
[2] Wang Xingbo.Functions Related to Binary Representation of Integers. Journal of Inequalities
and Special Functions, vol.2, issue 2,(2011), pp.8-12.
[3] D. Shanks, Solved and Unsolved Problems in Number Theory, 4th ed. New York: Chelsea,
1993.