Problem

ALG-B3-M06-P017 Square Recurrence

#17 Grade 10 Grade 11 ★★★★★ Level 5 of 5

Let \(f:\mathbb Z\to\mathbb Z\), \(f(0)=0\), and \(f(n+1)-f(n)=2n+1\). Find \(f(n)\).