Inspired by problem 660.
Given n return two disjoint sets of integers A and B with same cardinality having following property:

for i = 1:n
Try to minimize sets cardinality.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers11
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15821 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1743 Solvers
-
2564 Solvers
-
Check if number exists in vector
14587 Solvers
-
Return a list sorted by number of consecutive occurrences
441 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
assert(isequal(sum(A(:).^(1:n)), sum(A(:).^(1:n)))), makes it too basic.
( ·_ゝ·)
I have no idea what I was thinking of when I wrote this. Thanks for pointing that out so quickly.