Following this post on Meta, I am going to regularly ask questions from competitive mathematics exams, on a variety of topics; and provide a solution a few days later. The goal is not only to list interesting (I hope) exercises for the sake of self-study, but also to obtain (again, hopefully) a variety of techniques to solve them.
Let $f\colon\mathbb{R}\to\mathbb{R}$ be differentiable at $0$, and such that $f(0)=0$. Letting $s_n\stackrel{\rm def}{=} \sum_{k=0}^n f\!\left(\frac{k}{n^2}\right)$ for $n\geq 1$, find the limit of the sequence $(s_n)_{n\geq 1}$.
Reference: Exercise 4.26 in Exercices de mathématiques: oraux X-ENS (Analyse I), by Francinou, Gianella, and Nicolas (2014) ISBN 978-2842252137.