Problem 44554. The maximum sum of squares
Solution Stats
Problem Comments
-
2 Comments
Hi, DP. You have created a nice problem here: well done. Could you please clarify/check/amend one detail though. In the Problem Statement it stipulates the sum must be that "less than" maxval. So if maxval=1, then the series would have no terms (hence sum=0); alternatively, if it had one term, then the sum (1²=1) would be "less than or equal to" maxval, as implied in the Test Suite. Thanks, DIV
Thanks for the clarification!
Solution Comments
Show commentsProblem Recent Solvers44
Suggested Problems
-
The Goldbach Conjecture, Part 2
2412 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1987 Solvers
-
Back to basics 9 - Indexed References
459 Solvers
-
Permute diagonal and antidiagonal
500 Solvers
-
Split a string into chunks of specified length
2051 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!