Take a test Sign in 中文
← Exercise 609 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Digits (23)
Primes (14)
Divisors, GCD, and LCM (28)
Divisibility (22)
Fractions, Decimals, and the Floor Function (14)
Bases (19)
Modular Arithmetic (30)
Integer Equations (29)

Exercises and their solutions

Exercise 609
For positive integers $n,$ let $\tau (n)$ denote the number of positive integer divisors of $n,$ including 1 and $n.$ For example, $\tau (1)=1$ and $\tau(6) =4.$ Define $S(n)$ by $S(n)=\tau(1)+ \tau(2) + \cdots + \tau(n).$ Let $a$ denote the number of positive integers $n \leq 2025$ with $S(n)$ odd, and let $b$ denote the number of positive integers $n \leq 2025$ with $S(n)$ even. Find $|a-b|.$
← Back to Problem 609
Solution
  1. $\tau(n)$ is odd exactly for squares, so $S(n)$ is odd exactly when $\lfloor\sqrt n\rfloor$ is odd.
  2. For $k^2\le n<(k+1)^2$ there are $2k+1$ values. Odd $k=1,3,\dots,43$ give $\sum(2k+1)=990$, and $k=45$ adds $n=2025$, so $a=991$.
  3. Even $k=2,\dots,44$ give $b=1034$. So $|a-b|=43$.
  4. The answer is $\boxed{043}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1996 (1 problems)
1991 (1 problems)