MathDB
Problems
Contests
National and Regional Contests
USA Contests
USA - College-Hosted Events
Harvard-MIT Mathematics Tournament
2017 Harvard-MIT Mathematics Tournament
20
2017 Guts #20: n % 1000 > n % 1001
2017 Guts #20: n % 1000 > n % 1001
Source:
February 21, 2017
number theory
Problem Statement
For positive integers
a
a
a
and
N
N
N
, let
r
(
a
,
N
)
∈
{
0
,
1
,
…
,
N
−
1
}
r(a, N) \in \{0, 1, \dots, N - 1\}
r
(
a
,
N
)
∈
{
0
,
1
,
…
,
N
−
1
}
denote the remainder of
a
a
a
when divided by
N
N
N
. Determine the number of positive integers
n
≤
1000000
n \le 1000000
n
≤
1000000
for which
r
(
n
,
1000
)
>
r
(
n
,
1001
)
.
r(n, 1000) > r(n, 1001).
r
(
n
,
1000
)
>
r
(
n
,
1001
)
.
Back to Problems
View on AoPS