How to write Stirling numbers of the second kind?











up vote
16
down vote

favorite
2












What is the best way to write a Stirling number of the second kind? Isn't there any standard command in LaTeX? For example, a command binom is for binomial coefficients.



In the wikipedia article on Stirling number of the second kind, they used atop command. But people say atop is not recommended.










share|improve this question




















  • 1




    Even putting any technical reasons aside, atop is a bad choice as it left-aligns the "numerator" and "denominator", rather than centring them.
    – David Richerby
    Mar 28 '14 at 16:33















up vote
16
down vote

favorite
2












What is the best way to write a Stirling number of the second kind? Isn't there any standard command in LaTeX? For example, a command binom is for binomial coefficients.



In the wikipedia article on Stirling number of the second kind, they used atop command. But people say atop is not recommended.










share|improve this question




















  • 1




    Even putting any technical reasons aside, atop is a bad choice as it left-aligns the "numerator" and "denominator", rather than centring them.
    – David Richerby
    Mar 28 '14 at 16:33













up vote
16
down vote

favorite
2









up vote
16
down vote

favorite
2






2





What is the best way to write a Stirling number of the second kind? Isn't there any standard command in LaTeX? For example, a command binom is for binomial coefficients.



In the wikipedia article on Stirling number of the second kind, they used atop command. But people say atop is not recommended.










share|improve this question















What is the best way to write a Stirling number of the second kind? Isn't there any standard command in LaTeX? For example, a command binom is for binomial coefficients.



In the wikipedia article on Stirling number of the second kind, they used atop command. But people say atop is not recommended.







math-mode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 8 '12 at 3:51









hpesoj626

12.7k34089




12.7k34089










asked Dec 8 '12 at 3:45









user19906

610617




610617








  • 1




    Even putting any technical reasons aside, atop is a bad choice as it left-aligns the "numerator" and "denominator", rather than centring them.
    – David Richerby
    Mar 28 '14 at 16:33














  • 1




    Even putting any technical reasons aside, atop is a bad choice as it left-aligns the "numerator" and "denominator", rather than centring them.
    – David Richerby
    Mar 28 '14 at 16:33








1




1




Even putting any technical reasons aside, atop is a bad choice as it left-aligns the "numerator" and "denominator", rather than centring them.
– David Richerby
Mar 28 '14 at 16:33




Even putting any technical reasons aside, atop is a bad choice as it left-aligns the "numerator" and "denominator", rather than centring them.
– David Richerby
Mar 28 '14 at 16:33










4 Answers
4






active

oldest

votes

















up vote
20
down vote



accepted










The following is taken from amsmath and uses genfrac - a generic fraction function:



enter image description here



documentclass{article}
usepackage{amsmath}% http://ctan.org/pkg/amsmath
DeclareRobustCommand{stirling}{genfrac{}{0pt}{}}
begin{document}
% Source: http://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
In mathematics, particularly in combinatorics, a Stirling number of the second kind
is the number of ways to partition a set of $n$~objects into $k$~non-empty subsets and
is denoted by~$S(n,k)$ or~$stirling{a}{b}$. Stirling numbers of the second kind occur
in the field of mathematics called combinatorics and the study of partitions.
end{document}


How does this work? genfrac takes five arguments to create a structure (from the amsmath documentation; section 4.11.3 The genfrac command, p 14):




The last two correspond to frac’s numerator and denominator; the
first two are optional delimiters [...]; the third is a line thickness
override [0 implies an invisible rule]; and the fourth argument is a
mathstyle override: integer values 0-3 select respectively
displaystyle, textstyle, scriptstyle, and
scriptscriptstyle. If the third argument is left empty, the line
thickness defaults to ‘normal’.




So genfrac{}{0pt}{} creates a fraction with an invisible horizontal rule (third argument is 0pt), left and right delimiter given by { and }, respectively and no specific math style (an empty {} fourth argument). stirling doesn't include a fifth and sixth argument for genfrac (numerator and denominator), because this is implicitly supplied by the user as the two "arguments" to stirling.



In a similar manner (perhaps for reference), amsmath defines



newcommand{frac}[2]{genfrac{}{}{}{}{#1}{#2}}
newcommand{tfrac}[2]{genfrac{}{}{}{1}{#1}{#2}}
newcommand{binom}[2]{genfrac{(}{)}{0pt}{}{#1}{#2}}


using genfrac.






share|improve this answer






























    up vote
    11
    down vote













    Here is a plain pdfTeX solution, just to illustrate what type of typesetting Knuth used
    for such numbers (he wrote a few papers on this topic)



    % ========= Fonts
    fontsc=cmcsc10
    % ========== Heading macros
    magnification =magstep 1
    overfullrule =0pt
    %

    noindent 1. {sc Stirling numbers} ---
    Stirling cycle numbers ${ nbrack m}$ are defined by
    $$ ln^m(1+z) = m! sum_n (-1)^{n+m} { nbrack m} {z^nover n!}
    .leqno(1a) $$
    The numbers $(-1)^{n+m}{nbrack m}$ are also called Stirling numbers of the first kind.
    Stirling subset numbers ${nbrace m}$, also called Stirling numbers
    of the second kind, are defined by
    $$ left( e^z-1right)^m = m! sum_n {nbrace m} {z^nover n!}
    ,leqno(1b) $$
    and 2-associated Stirling subset numbers ${nbrace m}_{ge 2}$ are
    defined by

    $$ left( e^z-1-zright)^m = m!sum_n {nbrace m}_{!ge 2} {z^nover n!}
    .leqno(1c) $$

    bye


    enter image description here



    You can have a look at more examples at Knuth Papers






    share|improve this answer

















    • 1




      Wow. I am tempted to learn plain typesetting.
      – hpesoj626
      Dec 8 '12 at 6:37










    • @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
      – Yiannis Lazarides
      Dec 8 '12 at 7:38








    • 1




      Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
      – Mafra
      Dec 8 '12 at 14:29










    • @Mafra Thanks for the reference.
      – Yiannis Lazarides
      Dec 8 '12 at 17:44


















    up vote
    4
    down vote













    There is a Bmatrix environment in amsmath.



    documentclass{article}

    usepackage{amsmath}

    begin{document}
    begin{equation*}
    begin{Bmatrix}
    x\
    y
    end{Bmatrix}
    =frac{1}{k!}sumlimits_{j=0}{k}(-1)^{k-j}binom{k}{j}j^n
    end{equation*}
    end{document}


    enter image description here






    share|improve this answer






























      up vote
      0
      down vote













      It makes sense to define all at once:



      documentclass{article}
      usepackage{amsmath}

      newcommand{genstirlingI}[3]{%
      genfrac{[}{]}{0pt}{#1}{#2}{#3}%
      }
      newcommand{genstirlingII}[3]{%
      genfrac{{}{}}{0pt}{#1}{#2}{#3}%
      }
      newcommand{stirlingI}[2]{genstirlingI{}{#1}{#2}}
      newcommand{dstirlingI}[2]{genstirlingI{0}{#1}{#2}}
      newcommand{tstirlingI}[2]{genstirlingI{1}{#1}{#2}}
      newcommand{stirlingII}[2]{genstirlingII{}{#1}{#2}}
      newcommand{dstirlingII}[2]{genstirlingII{0}{#1}{#2}}
      newcommand{tstirlingII}[2]{genstirlingII{1}{#1}{#2}}

      begin{document}

      The Stirling symbol of the first kind $stirlingI{n}{k}$
      or of the second kind $stirlingII{n}{k}$
      [
      stirlingI{n}{k} ne stirlingII{n}{k}
      ]
      We can also choose the size
      [
      frac{stirlingI{n}{k}+stirlingII{n}{k}}{3}quad
      frac{dstirlingI{n}{k}+dstirlingII{n}{k}}{3}
      ]

      end{document}


      enter image description here






      share|improve this answer





















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "85"
        };
        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',
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        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/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














         

        draft saved


        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f86056%2fhow-to-write-stirling-numbers-of-the-second-kind%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        20
        down vote



        accepted










        The following is taken from amsmath and uses genfrac - a generic fraction function:



        enter image description here



        documentclass{article}
        usepackage{amsmath}% http://ctan.org/pkg/amsmath
        DeclareRobustCommand{stirling}{genfrac{}{0pt}{}}
        begin{document}
        % Source: http://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
        In mathematics, particularly in combinatorics, a Stirling number of the second kind
        is the number of ways to partition a set of $n$~objects into $k$~non-empty subsets and
        is denoted by~$S(n,k)$ or~$stirling{a}{b}$. Stirling numbers of the second kind occur
        in the field of mathematics called combinatorics and the study of partitions.
        end{document}


        How does this work? genfrac takes five arguments to create a structure (from the amsmath documentation; section 4.11.3 The genfrac command, p 14):




        The last two correspond to frac’s numerator and denominator; the
        first two are optional delimiters [...]; the third is a line thickness
        override [0 implies an invisible rule]; and the fourth argument is a
        mathstyle override: integer values 0-3 select respectively
        displaystyle, textstyle, scriptstyle, and
        scriptscriptstyle. If the third argument is left empty, the line
        thickness defaults to ‘normal’.




        So genfrac{}{0pt}{} creates a fraction with an invisible horizontal rule (third argument is 0pt), left and right delimiter given by { and }, respectively and no specific math style (an empty {} fourth argument). stirling doesn't include a fifth and sixth argument for genfrac (numerator and denominator), because this is implicitly supplied by the user as the two "arguments" to stirling.



        In a similar manner (perhaps for reference), amsmath defines



        newcommand{frac}[2]{genfrac{}{}{}{}{#1}{#2}}
        newcommand{tfrac}[2]{genfrac{}{}{}{1}{#1}{#2}}
        newcommand{binom}[2]{genfrac{(}{)}{0pt}{}{#1}{#2}}


        using genfrac.






        share|improve this answer



























          up vote
          20
          down vote



          accepted










          The following is taken from amsmath and uses genfrac - a generic fraction function:



          enter image description here



          documentclass{article}
          usepackage{amsmath}% http://ctan.org/pkg/amsmath
          DeclareRobustCommand{stirling}{genfrac{}{0pt}{}}
          begin{document}
          % Source: http://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
          In mathematics, particularly in combinatorics, a Stirling number of the second kind
          is the number of ways to partition a set of $n$~objects into $k$~non-empty subsets and
          is denoted by~$S(n,k)$ or~$stirling{a}{b}$. Stirling numbers of the second kind occur
          in the field of mathematics called combinatorics and the study of partitions.
          end{document}


          How does this work? genfrac takes five arguments to create a structure (from the amsmath documentation; section 4.11.3 The genfrac command, p 14):




          The last two correspond to frac’s numerator and denominator; the
          first two are optional delimiters [...]; the third is a line thickness
          override [0 implies an invisible rule]; and the fourth argument is a
          mathstyle override: integer values 0-3 select respectively
          displaystyle, textstyle, scriptstyle, and
          scriptscriptstyle. If the third argument is left empty, the line
          thickness defaults to ‘normal’.




          So genfrac{}{0pt}{} creates a fraction with an invisible horizontal rule (third argument is 0pt), left and right delimiter given by { and }, respectively and no specific math style (an empty {} fourth argument). stirling doesn't include a fifth and sixth argument for genfrac (numerator and denominator), because this is implicitly supplied by the user as the two "arguments" to stirling.



          In a similar manner (perhaps for reference), amsmath defines



          newcommand{frac}[2]{genfrac{}{}{}{}{#1}{#2}}
          newcommand{tfrac}[2]{genfrac{}{}{}{1}{#1}{#2}}
          newcommand{binom}[2]{genfrac{(}{)}{0pt}{}{#1}{#2}}


          using genfrac.






          share|improve this answer

























            up vote
            20
            down vote



            accepted







            up vote
            20
            down vote



            accepted






            The following is taken from amsmath and uses genfrac - a generic fraction function:



            enter image description here



            documentclass{article}
            usepackage{amsmath}% http://ctan.org/pkg/amsmath
            DeclareRobustCommand{stirling}{genfrac{}{0pt}{}}
            begin{document}
            % Source: http://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
            In mathematics, particularly in combinatorics, a Stirling number of the second kind
            is the number of ways to partition a set of $n$~objects into $k$~non-empty subsets and
            is denoted by~$S(n,k)$ or~$stirling{a}{b}$. Stirling numbers of the second kind occur
            in the field of mathematics called combinatorics and the study of partitions.
            end{document}


            How does this work? genfrac takes five arguments to create a structure (from the amsmath documentation; section 4.11.3 The genfrac command, p 14):




            The last two correspond to frac’s numerator and denominator; the
            first two are optional delimiters [...]; the third is a line thickness
            override [0 implies an invisible rule]; and the fourth argument is a
            mathstyle override: integer values 0-3 select respectively
            displaystyle, textstyle, scriptstyle, and
            scriptscriptstyle. If the third argument is left empty, the line
            thickness defaults to ‘normal’.




            So genfrac{}{0pt}{} creates a fraction with an invisible horizontal rule (third argument is 0pt), left and right delimiter given by { and }, respectively and no specific math style (an empty {} fourth argument). stirling doesn't include a fifth and sixth argument for genfrac (numerator and denominator), because this is implicitly supplied by the user as the two "arguments" to stirling.



            In a similar manner (perhaps for reference), amsmath defines



            newcommand{frac}[2]{genfrac{}{}{}{}{#1}{#2}}
            newcommand{tfrac}[2]{genfrac{}{}{}{1}{#1}{#2}}
            newcommand{binom}[2]{genfrac{(}{)}{0pt}{}{#1}{#2}}


            using genfrac.






            share|improve this answer














            The following is taken from amsmath and uses genfrac - a generic fraction function:



            enter image description here



            documentclass{article}
            usepackage{amsmath}% http://ctan.org/pkg/amsmath
            DeclareRobustCommand{stirling}{genfrac{}{0pt}{}}
            begin{document}
            % Source: http://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
            In mathematics, particularly in combinatorics, a Stirling number of the second kind
            is the number of ways to partition a set of $n$~objects into $k$~non-empty subsets and
            is denoted by~$S(n,k)$ or~$stirling{a}{b}$. Stirling numbers of the second kind occur
            in the field of mathematics called combinatorics and the study of partitions.
            end{document}


            How does this work? genfrac takes five arguments to create a structure (from the amsmath documentation; section 4.11.3 The genfrac command, p 14):




            The last two correspond to frac’s numerator and denominator; the
            first two are optional delimiters [...]; the third is a line thickness
            override [0 implies an invisible rule]; and the fourth argument is a
            mathstyle override: integer values 0-3 select respectively
            displaystyle, textstyle, scriptstyle, and
            scriptscriptstyle. If the third argument is left empty, the line
            thickness defaults to ‘normal’.




            So genfrac{}{0pt}{} creates a fraction with an invisible horizontal rule (third argument is 0pt), left and right delimiter given by { and }, respectively and no specific math style (an empty {} fourth argument). stirling doesn't include a fifth and sixth argument for genfrac (numerator and denominator), because this is implicitly supplied by the user as the two "arguments" to stirling.



            In a similar manner (perhaps for reference), amsmath defines



            newcommand{frac}[2]{genfrac{}{}{}{}{#1}{#2}}
            newcommand{tfrac}[2]{genfrac{}{}{}{1}{#1}{#2}}
            newcommand{binom}[2]{genfrac{(}{)}{0pt}{}{#1}{#2}}


            using genfrac.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 8 '12 at 15:43

























            answered Dec 8 '12 at 3:57









            Werner

            432k609511632




            432k609511632






















                up vote
                11
                down vote













                Here is a plain pdfTeX solution, just to illustrate what type of typesetting Knuth used
                for such numbers (he wrote a few papers on this topic)



                % ========= Fonts
                fontsc=cmcsc10
                % ========== Heading macros
                magnification =magstep 1
                overfullrule =0pt
                %

                noindent 1. {sc Stirling numbers} ---
                Stirling cycle numbers ${ nbrack m}$ are defined by
                $$ ln^m(1+z) = m! sum_n (-1)^{n+m} { nbrack m} {z^nover n!}
                .leqno(1a) $$
                The numbers $(-1)^{n+m}{nbrack m}$ are also called Stirling numbers of the first kind.
                Stirling subset numbers ${nbrace m}$, also called Stirling numbers
                of the second kind, are defined by
                $$ left( e^z-1right)^m = m! sum_n {nbrace m} {z^nover n!}
                ,leqno(1b) $$
                and 2-associated Stirling subset numbers ${nbrace m}_{ge 2}$ are
                defined by

                $$ left( e^z-1-zright)^m = m!sum_n {nbrace m}_{!ge 2} {z^nover n!}
                .leqno(1c) $$

                bye


                enter image description here



                You can have a look at more examples at Knuth Papers






                share|improve this answer

















                • 1




                  Wow. I am tempted to learn plain typesetting.
                  – hpesoj626
                  Dec 8 '12 at 6:37










                • @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
                  – Yiannis Lazarides
                  Dec 8 '12 at 7:38








                • 1




                  Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
                  – Mafra
                  Dec 8 '12 at 14:29










                • @Mafra Thanks for the reference.
                  – Yiannis Lazarides
                  Dec 8 '12 at 17:44















                up vote
                11
                down vote













                Here is a plain pdfTeX solution, just to illustrate what type of typesetting Knuth used
                for such numbers (he wrote a few papers on this topic)



                % ========= Fonts
                fontsc=cmcsc10
                % ========== Heading macros
                magnification =magstep 1
                overfullrule =0pt
                %

                noindent 1. {sc Stirling numbers} ---
                Stirling cycle numbers ${ nbrack m}$ are defined by
                $$ ln^m(1+z) = m! sum_n (-1)^{n+m} { nbrack m} {z^nover n!}
                .leqno(1a) $$
                The numbers $(-1)^{n+m}{nbrack m}$ are also called Stirling numbers of the first kind.
                Stirling subset numbers ${nbrace m}$, also called Stirling numbers
                of the second kind, are defined by
                $$ left( e^z-1right)^m = m! sum_n {nbrace m} {z^nover n!}
                ,leqno(1b) $$
                and 2-associated Stirling subset numbers ${nbrace m}_{ge 2}$ are
                defined by

                $$ left( e^z-1-zright)^m = m!sum_n {nbrace m}_{!ge 2} {z^nover n!}
                .leqno(1c) $$

                bye


                enter image description here



                You can have a look at more examples at Knuth Papers






                share|improve this answer

















                • 1




                  Wow. I am tempted to learn plain typesetting.
                  – hpesoj626
                  Dec 8 '12 at 6:37










                • @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
                  – Yiannis Lazarides
                  Dec 8 '12 at 7:38








                • 1




                  Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
                  – Mafra
                  Dec 8 '12 at 14:29










                • @Mafra Thanks for the reference.
                  – Yiannis Lazarides
                  Dec 8 '12 at 17:44













                up vote
                11
                down vote










                up vote
                11
                down vote









                Here is a plain pdfTeX solution, just to illustrate what type of typesetting Knuth used
                for such numbers (he wrote a few papers on this topic)



                % ========= Fonts
                fontsc=cmcsc10
                % ========== Heading macros
                magnification =magstep 1
                overfullrule =0pt
                %

                noindent 1. {sc Stirling numbers} ---
                Stirling cycle numbers ${ nbrack m}$ are defined by
                $$ ln^m(1+z) = m! sum_n (-1)^{n+m} { nbrack m} {z^nover n!}
                .leqno(1a) $$
                The numbers $(-1)^{n+m}{nbrack m}$ are also called Stirling numbers of the first kind.
                Stirling subset numbers ${nbrace m}$, also called Stirling numbers
                of the second kind, are defined by
                $$ left( e^z-1right)^m = m! sum_n {nbrace m} {z^nover n!}
                ,leqno(1b) $$
                and 2-associated Stirling subset numbers ${nbrace m}_{ge 2}$ are
                defined by

                $$ left( e^z-1-zright)^m = m!sum_n {nbrace m}_{!ge 2} {z^nover n!}
                .leqno(1c) $$

                bye


                enter image description here



                You can have a look at more examples at Knuth Papers






                share|improve this answer












                Here is a plain pdfTeX solution, just to illustrate what type of typesetting Knuth used
                for such numbers (he wrote a few papers on this topic)



                % ========= Fonts
                fontsc=cmcsc10
                % ========== Heading macros
                magnification =magstep 1
                overfullrule =0pt
                %

                noindent 1. {sc Stirling numbers} ---
                Stirling cycle numbers ${ nbrack m}$ are defined by
                $$ ln^m(1+z) = m! sum_n (-1)^{n+m} { nbrack m} {z^nover n!}
                .leqno(1a) $$
                The numbers $(-1)^{n+m}{nbrack m}$ are also called Stirling numbers of the first kind.
                Stirling subset numbers ${nbrace m}$, also called Stirling numbers
                of the second kind, are defined by
                $$ left( e^z-1right)^m = m! sum_n {nbrace m} {z^nover n!}
                ,leqno(1b) $$
                and 2-associated Stirling subset numbers ${nbrace m}_{ge 2}$ are
                defined by

                $$ left( e^z-1-zright)^m = m!sum_n {nbrace m}_{!ge 2} {z^nover n!}
                .leqno(1c) $$

                bye


                enter image description here



                You can have a look at more examples at Knuth Papers







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 8 '12 at 4:28









                Yiannis Lazarides

                91.6k19232511




                91.6k19232511








                • 1




                  Wow. I am tempted to learn plain typesetting.
                  – hpesoj626
                  Dec 8 '12 at 6:37










                • @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
                  – Yiannis Lazarides
                  Dec 8 '12 at 7:38








                • 1




                  Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
                  – Mafra
                  Dec 8 '12 at 14:29










                • @Mafra Thanks for the reference.
                  – Yiannis Lazarides
                  Dec 8 '12 at 17:44














                • 1




                  Wow. I am tempted to learn plain typesetting.
                  – hpesoj626
                  Dec 8 '12 at 6:37










                • @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
                  – Yiannis Lazarides
                  Dec 8 '12 at 7:38








                • 1




                  Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
                  – Mafra
                  Dec 8 '12 at 14:29










                • @Mafra Thanks for the reference.
                  – Yiannis Lazarides
                  Dec 8 '12 at 17:44








                1




                1




                Wow. I am tempted to learn plain typesetting.
                – hpesoj626
                Dec 8 '12 at 6:37




                Wow. I am tempted to learn plain typesetting.
                – hpesoj626
                Dec 8 '12 at 6:37












                @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
                – Yiannis Lazarides
                Dec 8 '12 at 7:38






                @hpesoj626 Not really necessary. If you place the code between begin{document}...end{document} it will work with LaTeX as well; amsmath will complain about the over though, if you using it. They can easily be converted to amsmath styles.
                – Yiannis Lazarides
                Dec 8 '12 at 7:38






                1




                1




                Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
                – Mafra
                Dec 8 '12 at 14:29




                Take a look specially at Knuth's P137 from the link above, it's called "Two notes on notation" and it's precisely about the Stirling numbers.
                – Mafra
                Dec 8 '12 at 14:29












                @Mafra Thanks for the reference.
                – Yiannis Lazarides
                Dec 8 '12 at 17:44




                @Mafra Thanks for the reference.
                – Yiannis Lazarides
                Dec 8 '12 at 17:44










                up vote
                4
                down vote













                There is a Bmatrix environment in amsmath.



                documentclass{article}

                usepackage{amsmath}

                begin{document}
                begin{equation*}
                begin{Bmatrix}
                x\
                y
                end{Bmatrix}
                =frac{1}{k!}sumlimits_{j=0}{k}(-1)^{k-j}binom{k}{j}j^n
                end{equation*}
                end{document}


                enter image description here






                share|improve this answer



























                  up vote
                  4
                  down vote













                  There is a Bmatrix environment in amsmath.



                  documentclass{article}

                  usepackage{amsmath}

                  begin{document}
                  begin{equation*}
                  begin{Bmatrix}
                  x\
                  y
                  end{Bmatrix}
                  =frac{1}{k!}sumlimits_{j=0}{k}(-1)^{k-j}binom{k}{j}j^n
                  end{equation*}
                  end{document}


                  enter image description here






                  share|improve this answer

























                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    There is a Bmatrix environment in amsmath.



                    documentclass{article}

                    usepackage{amsmath}

                    begin{document}
                    begin{equation*}
                    begin{Bmatrix}
                    x\
                    y
                    end{Bmatrix}
                    =frac{1}{k!}sumlimits_{j=0}{k}(-1)^{k-j}binom{k}{j}j^n
                    end{equation*}
                    end{document}


                    enter image description here






                    share|improve this answer














                    There is a Bmatrix environment in amsmath.



                    documentclass{article}

                    usepackage{amsmath}

                    begin{document}
                    begin{equation*}
                    begin{Bmatrix}
                    x\
                    y
                    end{Bmatrix}
                    =frac{1}{k!}sumlimits_{j=0}{k}(-1)^{k-j}binom{k}{j}j^n
                    end{equation*}
                    end{document}


                    enter image description here







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Mar 20 '17 at 19:31









                    David Carlisle

                    478k3811071841




                    478k3811071841










                    answered Dec 8 '12 at 3:57









                    hpesoj626

                    12.7k34089




                    12.7k34089






















                        up vote
                        0
                        down vote













                        It makes sense to define all at once:



                        documentclass{article}
                        usepackage{amsmath}

                        newcommand{genstirlingI}[3]{%
                        genfrac{[}{]}{0pt}{#1}{#2}{#3}%
                        }
                        newcommand{genstirlingII}[3]{%
                        genfrac{{}{}}{0pt}{#1}{#2}{#3}%
                        }
                        newcommand{stirlingI}[2]{genstirlingI{}{#1}{#2}}
                        newcommand{dstirlingI}[2]{genstirlingI{0}{#1}{#2}}
                        newcommand{tstirlingI}[2]{genstirlingI{1}{#1}{#2}}
                        newcommand{stirlingII}[2]{genstirlingII{}{#1}{#2}}
                        newcommand{dstirlingII}[2]{genstirlingII{0}{#1}{#2}}
                        newcommand{tstirlingII}[2]{genstirlingII{1}{#1}{#2}}

                        begin{document}

                        The Stirling symbol of the first kind $stirlingI{n}{k}$
                        or of the second kind $stirlingII{n}{k}$
                        [
                        stirlingI{n}{k} ne stirlingII{n}{k}
                        ]
                        We can also choose the size
                        [
                        frac{stirlingI{n}{k}+stirlingII{n}{k}}{3}quad
                        frac{dstirlingI{n}{k}+dstirlingII{n}{k}}{3}
                        ]

                        end{document}


                        enter image description here






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          It makes sense to define all at once:



                          documentclass{article}
                          usepackage{amsmath}

                          newcommand{genstirlingI}[3]{%
                          genfrac{[}{]}{0pt}{#1}{#2}{#3}%
                          }
                          newcommand{genstirlingII}[3]{%
                          genfrac{{}{}}{0pt}{#1}{#2}{#3}%
                          }
                          newcommand{stirlingI}[2]{genstirlingI{}{#1}{#2}}
                          newcommand{dstirlingI}[2]{genstirlingI{0}{#1}{#2}}
                          newcommand{tstirlingI}[2]{genstirlingI{1}{#1}{#2}}
                          newcommand{stirlingII}[2]{genstirlingII{}{#1}{#2}}
                          newcommand{dstirlingII}[2]{genstirlingII{0}{#1}{#2}}
                          newcommand{tstirlingII}[2]{genstirlingII{1}{#1}{#2}}

                          begin{document}

                          The Stirling symbol of the first kind $stirlingI{n}{k}$
                          or of the second kind $stirlingII{n}{k}$
                          [
                          stirlingI{n}{k} ne stirlingII{n}{k}
                          ]
                          We can also choose the size
                          [
                          frac{stirlingI{n}{k}+stirlingII{n}{k}}{3}quad
                          frac{dstirlingI{n}{k}+dstirlingII{n}{k}}{3}
                          ]

                          end{document}


                          enter image description here






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            It makes sense to define all at once:



                            documentclass{article}
                            usepackage{amsmath}

                            newcommand{genstirlingI}[3]{%
                            genfrac{[}{]}{0pt}{#1}{#2}{#3}%
                            }
                            newcommand{genstirlingII}[3]{%
                            genfrac{{}{}}{0pt}{#1}{#2}{#3}%
                            }
                            newcommand{stirlingI}[2]{genstirlingI{}{#1}{#2}}
                            newcommand{dstirlingI}[2]{genstirlingI{0}{#1}{#2}}
                            newcommand{tstirlingI}[2]{genstirlingI{1}{#1}{#2}}
                            newcommand{stirlingII}[2]{genstirlingII{}{#1}{#2}}
                            newcommand{dstirlingII}[2]{genstirlingII{0}{#1}{#2}}
                            newcommand{tstirlingII}[2]{genstirlingII{1}{#1}{#2}}

                            begin{document}

                            The Stirling symbol of the first kind $stirlingI{n}{k}$
                            or of the second kind $stirlingII{n}{k}$
                            [
                            stirlingI{n}{k} ne stirlingII{n}{k}
                            ]
                            We can also choose the size
                            [
                            frac{stirlingI{n}{k}+stirlingII{n}{k}}{3}quad
                            frac{dstirlingI{n}{k}+dstirlingII{n}{k}}{3}
                            ]

                            end{document}


                            enter image description here






                            share|improve this answer












                            It makes sense to define all at once:



                            documentclass{article}
                            usepackage{amsmath}

                            newcommand{genstirlingI}[3]{%
                            genfrac{[}{]}{0pt}{#1}{#2}{#3}%
                            }
                            newcommand{genstirlingII}[3]{%
                            genfrac{{}{}}{0pt}{#1}{#2}{#3}%
                            }
                            newcommand{stirlingI}[2]{genstirlingI{}{#1}{#2}}
                            newcommand{dstirlingI}[2]{genstirlingI{0}{#1}{#2}}
                            newcommand{tstirlingI}[2]{genstirlingI{1}{#1}{#2}}
                            newcommand{stirlingII}[2]{genstirlingII{}{#1}{#2}}
                            newcommand{dstirlingII}[2]{genstirlingII{0}{#1}{#2}}
                            newcommand{tstirlingII}[2]{genstirlingII{1}{#1}{#2}}

                            begin{document}

                            The Stirling symbol of the first kind $stirlingI{n}{k}$
                            or of the second kind $stirlingII{n}{k}$
                            [
                            stirlingI{n}{k} ne stirlingII{n}{k}
                            ]
                            We can also choose the size
                            [
                            frac{stirlingI{n}{k}+stirlingII{n}{k}}{3}quad
                            frac{dstirlingI{n}{k}+dstirlingII{n}{k}}{3}
                            ]

                            end{document}


                            enter image description here







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 10 hours ago









                            egreg

                            700k8518633138




                            700k8518633138






























                                 

                                draft saved


                                draft discarded



















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f86056%2fhow-to-write-stirling-numbers-of-the-second-kind%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

                                サソリ

                                広島県道265号伴広島線

                                Accessing regular linux commands in Huawei's Dopra Linux