Enumerating all permutations that are “square roots” of derangementsNon-enumerative proof that there are many derangements?Statistics on Lehmer codesNon-enumerative proof that there are many simple permutations?Are there enough additive permutations?What is the criterion for a matrix containing vectors and their permutations being invertible?The number of permutations with a special conditionOdd permutations $tauin S_n$ with $sum_k=1^nktau(k)$ an odd square

Enumerating all permutations that are “square roots” of derangements


Non-enumerative proof that there are many derangements?Statistics on Lehmer codesNon-enumerative proof that there are many simple permutations?Are there enough additive permutations?What is the criterion for a matrix containing vectors and their permutations being invertible?The number of permutations with a special conditionOdd permutations $tauin S_n$ with $sum_k=1^nktau(k)$ an odd square













3















$begingroup$


Is there an algorithm that enumerates all permutations that are "square roots" of derangements, i.e. permutations that, when applied twice, yield a derangement?



Other information about those kind of permutations is also welcome.










share|cite|improve this question









$endgroup$










  • 1




    $begingroup$
    Your condition is equivalent to all cycles having length 3 or greater, right?
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:43










  • $begingroup$
    yes, but when thinking about how to formulate the question, I decided for emphasising the relation to derangements.
    $endgroup$
    – Manfred Weis
    Sep 27 at 17:49







  • 6




    $begingroup$
    It is a classic result (attributed to Touchard?) that the generating function for the cycle index polynomials of symmetric groups is $sum_n geq 0 fracx^nn! sum_sigma in mathfrakS_n t_1^c_1(sigma)t_2^c_2(sigma)cdots = e^t_1 fracx1 + t_2fracx^22 + t_3fracx^33 + cdots$, where $c_k(sigma)$ is the number of cycles of $sigma$ of length $k$. Specializing $t_1=t_2=0$ and $t_3=t_4=cdots=1$ gives the generating function for the permutations you want to count. This should easily allow you to enumerate them.
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:52











  • $begingroup$
    @SamHopkins thanks for providing that information; I guess that will solve my problem.
    $endgroup$
    – Manfred Weis
    Sep 27 at 18:00










  • $begingroup$
    The cycle index polynomials that Sam mentions are also discussed in Stanley's Enumerative Combinatorics, v2, Example 5.2.10, which goes on to consider "$r$th roots" of the identity permutation.
    $endgroup$
    – Brian Hopkins
    Sep 27 at 18:23
















3















$begingroup$


Is there an algorithm that enumerates all permutations that are "square roots" of derangements, i.e. permutations that, when applied twice, yield a derangement?



Other information about those kind of permutations is also welcome.










share|cite|improve this question









$endgroup$










  • 1




    $begingroup$
    Your condition is equivalent to all cycles having length 3 or greater, right?
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:43










  • $begingroup$
    yes, but when thinking about how to formulate the question, I decided for emphasising the relation to derangements.
    $endgroup$
    – Manfred Weis
    Sep 27 at 17:49







  • 6




    $begingroup$
    It is a classic result (attributed to Touchard?) that the generating function for the cycle index polynomials of symmetric groups is $sum_n geq 0 fracx^nn! sum_sigma in mathfrakS_n t_1^c_1(sigma)t_2^c_2(sigma)cdots = e^t_1 fracx1 + t_2fracx^22 + t_3fracx^33 + cdots$, where $c_k(sigma)$ is the number of cycles of $sigma$ of length $k$. Specializing $t_1=t_2=0$ and $t_3=t_4=cdots=1$ gives the generating function for the permutations you want to count. This should easily allow you to enumerate them.
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:52











  • $begingroup$
    @SamHopkins thanks for providing that information; I guess that will solve my problem.
    $endgroup$
    – Manfred Weis
    Sep 27 at 18:00










  • $begingroup$
    The cycle index polynomials that Sam mentions are also discussed in Stanley's Enumerative Combinatorics, v2, Example 5.2.10, which goes on to consider "$r$th roots" of the identity permutation.
    $endgroup$
    – Brian Hopkins
    Sep 27 at 18:23














3













3









3





$begingroup$


Is there an algorithm that enumerates all permutations that are "square roots" of derangements, i.e. permutations that, when applied twice, yield a derangement?



Other information about those kind of permutations is also welcome.










share|cite|improve this question









$endgroup$




Is there an algorithm that enumerates all permutations that are "square roots" of derangements, i.e. permutations that, when applied twice, yield a derangement?



Other information about those kind of permutations is also welcome.







permutations enumerative-combinatorics






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Sep 27 at 17:39









Manfred WeisManfred Weis

8,2482 gold badges16 silver badges48 bronze badges




8,2482 gold badges16 silver badges48 bronze badges










  • 1




    $begingroup$
    Your condition is equivalent to all cycles having length 3 or greater, right?
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:43










  • $begingroup$
    yes, but when thinking about how to formulate the question, I decided for emphasising the relation to derangements.
    $endgroup$
    – Manfred Weis
    Sep 27 at 17:49







  • 6




    $begingroup$
    It is a classic result (attributed to Touchard?) that the generating function for the cycle index polynomials of symmetric groups is $sum_n geq 0 fracx^nn! sum_sigma in mathfrakS_n t_1^c_1(sigma)t_2^c_2(sigma)cdots = e^t_1 fracx1 + t_2fracx^22 + t_3fracx^33 + cdots$, where $c_k(sigma)$ is the number of cycles of $sigma$ of length $k$. Specializing $t_1=t_2=0$ and $t_3=t_4=cdots=1$ gives the generating function for the permutations you want to count. This should easily allow you to enumerate them.
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:52











  • $begingroup$
    @SamHopkins thanks for providing that information; I guess that will solve my problem.
    $endgroup$
    – Manfred Weis
    Sep 27 at 18:00










  • $begingroup$
    The cycle index polynomials that Sam mentions are also discussed in Stanley's Enumerative Combinatorics, v2, Example 5.2.10, which goes on to consider "$r$th roots" of the identity permutation.
    $endgroup$
    – Brian Hopkins
    Sep 27 at 18:23













  • 1




    $begingroup$
    Your condition is equivalent to all cycles having length 3 or greater, right?
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:43










  • $begingroup$
    yes, but when thinking about how to formulate the question, I decided for emphasising the relation to derangements.
    $endgroup$
    – Manfred Weis
    Sep 27 at 17:49







  • 6




    $begingroup$
    It is a classic result (attributed to Touchard?) that the generating function for the cycle index polynomials of symmetric groups is $sum_n geq 0 fracx^nn! sum_sigma in mathfrakS_n t_1^c_1(sigma)t_2^c_2(sigma)cdots = e^t_1 fracx1 + t_2fracx^22 + t_3fracx^33 + cdots$, where $c_k(sigma)$ is the number of cycles of $sigma$ of length $k$. Specializing $t_1=t_2=0$ and $t_3=t_4=cdots=1$ gives the generating function for the permutations you want to count. This should easily allow you to enumerate them.
    $endgroup$
    – Sam Hopkins
    Sep 27 at 17:52











  • $begingroup$
    @SamHopkins thanks for providing that information; I guess that will solve my problem.
    $endgroup$
    – Manfred Weis
    Sep 27 at 18:00










  • $begingroup$
    The cycle index polynomials that Sam mentions are also discussed in Stanley's Enumerative Combinatorics, v2, Example 5.2.10, which goes on to consider "$r$th roots" of the identity permutation.
    $endgroup$
    – Brian Hopkins
    Sep 27 at 18:23








1




1




$begingroup$
Your condition is equivalent to all cycles having length 3 or greater, right?
$endgroup$
– Sam Hopkins
Sep 27 at 17:43




$begingroup$
Your condition is equivalent to all cycles having length 3 or greater, right?
$endgroup$
– Sam Hopkins
Sep 27 at 17:43












$begingroup$
yes, but when thinking about how to formulate the question, I decided for emphasising the relation to derangements.
$endgroup$
– Manfred Weis
Sep 27 at 17:49





$begingroup$
yes, but when thinking about how to formulate the question, I decided for emphasising the relation to derangements.
$endgroup$
– Manfred Weis
Sep 27 at 17:49





6




6




$begingroup$
It is a classic result (attributed to Touchard?) that the generating function for the cycle index polynomials of symmetric groups is $sum_n geq 0 fracx^nn! sum_sigma in mathfrakS_n t_1^c_1(sigma)t_2^c_2(sigma)cdots = e^t_1 fracx1 + t_2fracx^22 + t_3fracx^33 + cdots$, where $c_k(sigma)$ is the number of cycles of $sigma$ of length $k$. Specializing $t_1=t_2=0$ and $t_3=t_4=cdots=1$ gives the generating function for the permutations you want to count. This should easily allow you to enumerate them.
$endgroup$
– Sam Hopkins
Sep 27 at 17:52





$begingroup$
It is a classic result (attributed to Touchard?) that the generating function for the cycle index polynomials of symmetric groups is $sum_n geq 0 fracx^nn! sum_sigma in mathfrakS_n t_1^c_1(sigma)t_2^c_2(sigma)cdots = e^t_1 fracx1 + t_2fracx^22 + t_3fracx^33 + cdots$, where $c_k(sigma)$ is the number of cycles of $sigma$ of length $k$. Specializing $t_1=t_2=0$ and $t_3=t_4=cdots=1$ gives the generating function for the permutations you want to count. This should easily allow you to enumerate them.
$endgroup$
– Sam Hopkins
Sep 27 at 17:52













$begingroup$
@SamHopkins thanks for providing that information; I guess that will solve my problem.
$endgroup$
– Manfred Weis
Sep 27 at 18:00




$begingroup$
@SamHopkins thanks for providing that information; I guess that will solve my problem.
$endgroup$
– Manfred Weis
Sep 27 at 18:00












$begingroup$
The cycle index polynomials that Sam mentions are also discussed in Stanley's Enumerative Combinatorics, v2, Example 5.2.10, which goes on to consider "$r$th roots" of the identity permutation.
$endgroup$
– Brian Hopkins
Sep 27 at 18:23





$begingroup$
The cycle index polynomials that Sam mentions are also discussed in Stanley's Enumerative Combinatorics, v2, Example 5.2.10, which goes on to consider "$r$th roots" of the identity permutation.
$endgroup$
– Brian Hopkins
Sep 27 at 18:23











1 Answer
1






active

oldest

votes


















11

















$begingroup$

Check out "Example 2. Permutations with no small cycles" on pg. 176 of H. Wilf's "generatingfunctionology": https://www.math.upenn.edu/~wilf/DownldGF.html. It explains, using generating functions, how the number of permutations in $mathfrakS_n$ you are looking for is asymptotically $approx frac1e^1+1/2 n!$, just like the number of derangements is $approx frac1e n!$. In general the fraction of permutations with cycles all of length $>q$ is $e^-H_q$ where $H_q = 1+1/2+1/3+...+1/q$.






share|cite|improve this answer












$endgroup$















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "504"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathoverflow.net%2fquestions%2f342613%2fenumerating-all-permutations-that-are-square-roots-of-derangements%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11

















    $begingroup$

    Check out "Example 2. Permutations with no small cycles" on pg. 176 of H. Wilf's "generatingfunctionology": https://www.math.upenn.edu/~wilf/DownldGF.html. It explains, using generating functions, how the number of permutations in $mathfrakS_n$ you are looking for is asymptotically $approx frac1e^1+1/2 n!$, just like the number of derangements is $approx frac1e n!$. In general the fraction of permutations with cycles all of length $>q$ is $e^-H_q$ where $H_q = 1+1/2+1/3+...+1/q$.






    share|cite|improve this answer












    $endgroup$


















      11

















      $begingroup$

      Check out "Example 2. Permutations with no small cycles" on pg. 176 of H. Wilf's "generatingfunctionology": https://www.math.upenn.edu/~wilf/DownldGF.html. It explains, using generating functions, how the number of permutations in $mathfrakS_n$ you are looking for is asymptotically $approx frac1e^1+1/2 n!$, just like the number of derangements is $approx frac1e n!$. In general the fraction of permutations with cycles all of length $>q$ is $e^-H_q$ where $H_q = 1+1/2+1/3+...+1/q$.






      share|cite|improve this answer












      $endgroup$
















        11















        11











        11







        $begingroup$

        Check out "Example 2. Permutations with no small cycles" on pg. 176 of H. Wilf's "generatingfunctionology": https://www.math.upenn.edu/~wilf/DownldGF.html. It explains, using generating functions, how the number of permutations in $mathfrakS_n$ you are looking for is asymptotically $approx frac1e^1+1/2 n!$, just like the number of derangements is $approx frac1e n!$. In general the fraction of permutations with cycles all of length $>q$ is $e^-H_q$ where $H_q = 1+1/2+1/3+...+1/q$.






        share|cite|improve this answer












        $endgroup$



        Check out "Example 2. Permutations with no small cycles" on pg. 176 of H. Wilf's "generatingfunctionology": https://www.math.upenn.edu/~wilf/DownldGF.html. It explains, using generating functions, how the number of permutations in $mathfrakS_n$ you are looking for is asymptotically $approx frac1e^1+1/2 n!$, just like the number of derangements is $approx frac1e n!$. In general the fraction of permutations with cycles all of length $>q$ is $e^-H_q$ where $H_q = 1+1/2+1/3+...+1/q$.







        share|cite|improve this answer















        share|cite|improve this answer




        share|cite|improve this answer








        edited Sep 27 at 18:27

























        answered Sep 27 at 18:21









        Sam HopkinsSam Hopkins

        9,8771 gold badge35 silver badges77 bronze badges




        9,8771 gold badge35 silver badges77 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to MathOverflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathoverflow.net%2fquestions%2f342613%2fenumerating-all-permutations-that-are-square-roots-of-derangements%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?