To sum the squares of a series of integers (1 ... n), one can use the formula: 1² + 2² + ... + n² or the formula: (n * (n + 1) * (2n + 1)) / 6 This project demonstrates (graphically), that the two formulas generate the same result. Select value for n using slider; then click the Draw button.
Thanks to @gregatku for his version that inspired this: https://scratch.mit.edu/projects/1365862230 Also, thanks to @gregatku and @s_federici for valuable suggestions to improve the animations..