Problem 44334. Sums of Multiple Pairs of Triangular Numbers
Solution Stats
Problem Comments
-
1 Comment
The first test case is wrong 0 and 21 are triangular numbers too (https://oeis.org/A000217), therefore:
multi_triangular(21)
[ 0, 6;
21, 15]
PS: And 0 does not make a pair with every number in this case.
Solution Comments
-
2 Comments
Problem Recent Solvers219
Suggested Problems
-
12621 Solvers
-
1302 Solvers
-
Set the array elements whose value is 13 to 0
1170 Solvers
-
249 Solvers
-
5264 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!