MathDB
Problems
Contests
International Contests
Baltic Way
2001 Baltic Way
4
Sum of floors with primes p,q
Sum of floors with primes p,q
Source: Baltic Way 2001
November 17, 2010
floor function
combinatorics proposed
combinatorics
Problem Statement
Let
p
p
p
and
q
q
q
be two different primes. Prove that
⌊
p
q
⌋
+
⌊
2
p
q
⌋
+
⌊
3
p
q
⌋
+
…
+
⌊
(
q
−
1
)
p
q
⌋
=
1
2
(
p
−
1
)
(
q
−
1
)
\left\lfloor\frac{p}{q}\right\rfloor+\left\lfloor\frac{2p}{q}\right\rfloor+\left\lfloor\frac{3p}{q}\right\rfloor+\ldots +\left\lfloor\frac{(q-1)p}{q}\right\rfloor=\frac{1}{2}(p-1)(q-1)
⌊
q
p
⌋
+
⌊
q
2
p
⌋
+
⌊
q
3
p
⌋
+
…
+
⌊
q
(
q
−
1
)
p
⌋
=
2
1
(
p
−
1
)
(
q
−
1
)
Back to Problems
View on AoPS