Maths Olympiad Prep

Library / HMMT /17 of 79

HMMT, 2002

Algebra Difficulty 5.0 AIME Prove it United States

Problem:

For positive integers LL, let SL=∑n=1L⌊n/2⌋S_{L} = \sum_{n=1}^{L} \lfloor n / 2 \rfloor. Determine all LL for which SLS_{L} is a square number.

Solution

Solution:

We distinguish two cases depending on the parity of LL.

Suppose first that L=2k−1L = 2k - 1 is odd, where k≥1k \geq 1. Then
SL=∑1≤n≤2k−1⌊n2⌋=2∑0≤m<km=2⋅k(k−1)2=k(k−1). S_{L} = \sum_{1 \leq n \leq 2k-1} \left\lfloor \frac{n}{2} \right\rfloor = 2 \sum_{0 \leq m < k} m = 2 \cdot \frac{k(k-1)}{2} = k(k-1).
If k=1k = 1, this is the square number 00. If k>1k > 1 then (k−1)2<k(k−1)<k2(k-1)^2 < k(k-1) < k^2, so k(k−1)k(k-1) is not square.

Now suppose L=2kL = 2k is even, where k≥1k \geq 1. Then SL=SL−1+k=k2S_{L} = S_{L-1} + k = k^2 is always square.

Hence SLS_{L} is square exactly when L=1L = 1 or LL is even.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.