Problem 44334. Sums of Multiple Pairs of Triangular Numbers
45.14% Correct | 54.86% Incorrect
Last Solution submitted on Jan 20, 2023
Rafael S.T. Vieira on 2 Jul 2020
The first test case is wrong 0 and 21 are triangular numbers too (https://oeis.org/A000217), therefore:
[ 0, 6;
PS: And 0 does not make a pair with every number in this case.
Solution CommentsShow comments
Problem Recent Solvers227
Return a list sorted by number of occurrences
Determine Whether an array is empty
More from this Author80
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!