On A Class of Sums Involving The Floor Function: Titu Andreescu and Dorin Andrica
On A Class of Sums Involving The Floor Function: Titu Andreescu and Dorin Andrica
On A Class of Sums Involving The Floor Function: Titu Andreescu and Dorin Andrica
+
R is a function such that:
i)
f(k)
p
is not an integer, k = 1, 2, . . . , p 1;
ii) f(k) + f(p k) is an integer divisible by p, k = 1, 2, . . . , p 1, then
p1
k=1
_
f(k)
q
p
_
=
q
p
p1
k=1
f(k)
p 1
2
. (1)
Proof. From ii) it follows that
qf(k)
p
+
qf(p k)
p
Z (2)
and from i) we obtain that
qf(k)
p
, Z and
qf(p k)
p
, Z, k = 1, . . . , p 1,
hence
0 <
_
qf(k)
p
_
+
_
qf(p k)
p
_
< 2.
But, from (1),
_
qf(k)
p
_
+
_
qf(p k)
p
_
Z, thus
_
qf(k)
p
_
+
_
qf(p k)
p
_
= 1, k = 1, . . . , p 1.
Summing up and dividing by 2 yields
p1
k=1
_
q
p
f(k)
_
=
p 1
2
.
It follows that
p1
k=1
q
p
f(k)
p1
k=1
_
q
p
f(k)
_
=
p 1
2
and the conclusion follows.
Application 1. The function f(x) = x satises both i) and ii) in
Theorem, hence
p1
k=1
_
k
q
p
_
=
q
p
(p 1)p
2
p 1
2
,
Mathematical Reflections 3, (2006) 2
that is
p1
k=1
_
k
q
p
_
=
(p 1)(q 1)
2
(Gauss). (3)
Remark. From the proof of our Theorem, it follows that the above
formula holds for any relatively prime integers p and q.
Application 2. The function f(x) = x
3
also satises conditions i) and
ii), hence
p1
k=1
_
k
3
q
p
_
=
q
p
(p 1)
2
p
2
4
p 1
2
=
(p 1)(p
2
q pq 2)
4
. (4)
For q = 1 we obtain the 2002 German Mathematical Olympiad problem:
p1
k=1
_
k
3
p
_
=
(p 2)(p 1)(p + 1)
4
. (5)
Application 3. For f : Z
+
R, f(s) = (1)
s
s
2
, conditions i) and ii)
in our Theorem are both satised. We obtain
p1
k=1
_
(1)
k
k
2
q
p
_
=
q
p
(1
2
+ 2
2
. . . + (p 1)
2
)
p 1
2
=
q
p
p(p 1)
2
p 1
2
,
hence
p1
k=1
_
(1)
k
k
2
q
p
_
=
(p 1)(q 1)
2
. (6)
Remark. By taking q = 1 we get
p1
k=1
_
(1)
k
k
2
p
_
= 0.
Using now the identity x| = 1x|, x RZ, the last display takes
the form
p1
k=1
(1)
k
_
k
2
p
_
=
1 p
2
. (7)
Mathematical Reflections 3, (2006) 3
Application 4. Similarly, applying our Theorem to f : Z
+
R, f(s) =
(1)
s
s
4
yields
p1
k=1
_
(1)
k
k
4
q
p
_
=
q(p 1)(p
2
p 1)
2
p 1
2
. (8)
Taking q = 1 gives
p1
k=1
_
(1)
k
k
4
p
_
=
(p 2)(p 1)(p + 1)
2
. (9)
Application 5. For f(s) =
s
p
p
, conditions i) and ii) in our Theorem are
also satised and for q = 1 we obtain
p1
k=1
_
k
p
p
2
_
=
1
p
p1
k=1
k
p
p
p 1
2
=
1
p
2
_
p1
k=1
k
p
p(p 1)
2
_
,
hence
p1
k=1
_
k
p
p
2
_
=
1
2
p1
k=1
k
p
k
p
. (10)
Formula (10) shows that half of the sum of the quotients obtained when
k
p
k is divided by p (Fermats Little Theorem) is equal to the sum of the
quotients obtained when k
p
is divided by p
2
, k = 1, 2, . . . , p 1.
Mathematical Reflections 3, (2006) 4
References
[1] Andreescu, T., Andrica, D., Number Theory and its Mathematical
Structures, Birkhauser, Boston-Basel-Berlin (to appear).
University of Texas at Dallas
School of Natural Sciences and Mathematics
Richardson, TX 75080
e-mail: [email protected]
Babes-Bolyai University
Faculty of Mathematics and Computer Science
Cluj-Napoca, Romania
e-mail: [email protected]
Mathematical Reflections 3, (2006) 5