Problem 45496. Ordered pairs of integers (I, J).
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condition 1<=I<J<=N, for a given value of N.
Solution Stats
Problem Comments
-
1 Comment
ChrisR
on 6 Sep 2020
Prasad, I enjoyed thinking through the pattern to solve this problem and the related problem. One suggestion for both is to add more test cases so that solvers cannot simply write their codes to return the answer to the single test case.
Solution Comments
Show commentsProblem Recent Solvers41
Suggested Problems
-
Back to basics 8 - Matrix Diagonals
962 Solvers
-
Get the length of a given vector
12871 Solvers
-
Create a two dimensional zero matrix
523 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
158 Solvers
-
12444 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!