Given in input the maximum degree P, the algorithm furnishes a ordered list of two dimensional vectors [i,j] i,j>=0 such that i+j<=P-1
P=2 indexes=[0,0;1,0;0,1]
P=3 indexes=[0,0;1,0;0,1;2,0;1,1;0,2]
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers16
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3061 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1740 Solvers
-
Project Euler: Problem 5, Smallest multiple
1649 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13603 Solvers
-
212 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The indexes must follow a cantor-like order for some reason, and this zig-zag should probably be added to the problem description.
What exactly do you mean by an ordered pair? Specify it in the problem description.