Take a test Sign in 中文
← Exercise 631 →
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 631
For each even positive integer $x,$ let $g(x)$ denote the greatest power of 2 that divides $x.$ For example, $g(20)=4$ and $g(16)=16.$ For each positive integer $n,$ let $S_n=\sum_{k=1}^{2^{n-1}}g(2k).$ Find the greatest integer $n$ less than 700 such that $S_n$ is a perfect square.
← Back to Problem 631
Solution
  1. Splitting $k$ by its power of $2$ gives $S_n=2^{n-1}(n+1)$.
  2. If $n$ is odd, we need $n+1$ to be a square; if $n$ is even we need $2(n+1)$ to be a square, which is impossible since $n+1$ is odd.
  3. The largest odd $n<700$ with $n+1$ an even square is $n+1=676$, so $n=675$.
  4. The answer is $\boxed{675}$.
Search Go to Prev      Next

Contact Us

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