Problem 45193. Fun with permutations
Solution Stats
Problem Comments
-
2 Comments
I couldn't figure out why my numbers were larger than the answers in the test suite and finally realized that most of those answers were products of the unique factors of the numbers of permutations.
I'm confused about the values in the test suite as well. As far as I can tell, this problem is asking about self-inverse permutations of 1:n, the number of is given in A000085 on the OEIS; the numbers given there differ from the values in the test suite, but they do match the output of my code. Some clarification would be nice.
Problem Recent Solvers4
Suggested Problems
-
22017 Solvers
-
given 3 sides, find area of this triangle
775 Solvers
-
991 Solvers
-
Integer Sequence - II : New Fibonacci
412 Solvers
-
429 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!