Problem

Source: Romanian TST 1979 day 2 P2

Tags: Sequence, algebra



For each $n\in \mathbb{Z}_{>0}$ let $a_n$ be the closest integer to $\sqrt{n}$. Compute the general term of the sequence: $(b_n)_{n\geqslant 1}$ with \[b_n=\sum_{k=1}^{n^2} a_k.\] Pall Dalyay