{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
For positive integers $n$ and $k$, let $f(n, k)$ be the remainder when $n$ is divided by $k$, and for $n > 1$ let $F(n) = \max_{1\le k\le \frac{n}{2}} f(n, k)$. Find the remainder when $\sum\limits_{n=20}^{100} F(n)$ is divided by $1000$.
For $k>\frac n2$ is not allowed; for $\frac n3<k\le\frac n2$ the remainder is $n-2k$, largest for the least such $k$; for $k\le\frac n3$ the remainder is less than $k\le\frac n3$. For $n\ge20$ the first option wins.
So with $k=m+1$, $F(3m)=m-2$, $F(3m+1)=m-1$, $F(3m+2)=m$.
Summing over $n=20,\dots,100$ gives $\sum_{m=6}^{32}m+\sum_{m=7}^{33}(m-2)+\sum_{m=7}^{33}(m-1)=513+486+513=1512$.
The remainder is $512$. The answer is $\boxed{512}$.
For positive integers $n$ and $k$, let $f(n, k)$ be the remainder when $n$ is divided by $k$, and for $n > 1$ let $F(n) = \max_{1\le k\le \frac{n}{2}} f(n, k)$. Find the remainder when $\sum\limits_{n=30}^{110} F(n)$ is divided by $1000$.