Problem 45193. Fun with permutations
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
given 3 sides, find area of this triangle
Integer Sequence - II : New Fibonacci
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!