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 Solvers7
Suggested Problems
-
Maximum running product for a string of numbers
2254 Solvers
-
Solve the set of simultaneous linear equations
503 Solvers
-
Create One Large Eye of size N x N Quickly?
95 Solvers
-
Penny flipping - calculate winning probability (easy)
196 Solvers
-
Create a two dimensional zero matrix
525 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.