Problem 44554. The maximum sum of squares (testing)

Created by ddd ppp in Community

Create a function file with an input maxval to determine the maximum number of terms for the series 1^2 + 2^2 + 3^2 + ... such that the sum is <= maxval. The function should return the number of terms. The function should return 13 when maxval=1000.

Solution Stats

62.5% Correct | 37.5% Incorrect
Last solution submitted on Apr 02, 2019

Problem Comments

Solution Comments

Recent Solvers17

Suggested Problems