I think that with this kind of problem, you can process in two steps.
A first easy problem with small N (to test perms for example). And a harder problem with big N, which
oblige to find another algorithm.
http://oeis.org/A000166
6065 Solvers
190 Solvers
Create a function handle that reverses the input arguments of another function handle
124 Solvers
Back to basics 3 - Temp Directory
328 Solvers
Matrix which contains the values of an other matrix A at the given locations.
214 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!