Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Home
                      • CalcMe
                      • Commands
                      • Combinatorics and Progressions
                      • Combinatorics and Progressions

                      Permutations with repetition

                      Reading time: 1min

                      Computes the number of permutations with repetitions. That is, given a non-negative integer n and a sequence of one or more additional non-negative integers n1,...,nr such that n1+⋯+nr=n, this functions returns the number of permutations for n elements taken from r different elements and such that the i-th element repeats ni times.

                      Syntax

                      permutations_with_repetition(Integer, Integer, ..., Integer)
                      
                      permutations_with_repetition(Integer, List | Vector)
                      

                      Description

                      Given an integer n and a set of integers n1,...,nr satisfying the conditions above, computes the number of permutations for n elements taken from r different elements and such that the i-th element repeats ni times.

                      Given an integer n and a list or vector of n elements, comprised of r different elements and such that the i-th element repeats ni times, returns a list of all the different distinct permutations (in lexicographical order).

                      Was this article helpful?

                      Yes
                      No
                      Give feedback about this article

                      Related Articles

                      • Integrate
                      • Interpolate
                      • Series
                      • Convergent?

                      Permutations with repetition

                      Syntax Description

                      Making people’s STEM work more meaningful

                      MathType

                      • MathType for Office Tools
                      • MathType for Mac
                      • MathType for Microsoft 365
                      • MathType for Google Workspace
                      • MathType for LMS
                      • MathType for XML Editors
                      • Arabic notation
                      • Our products accessibility
                      • MathType is online

                      WirisQuizzes

                      Learning Lemur

                      Solutions for Education

                      • Blackboard Learn
                      • Brightspace by D2L
                      • Canvas
                      • Google Classroom
                      • Moodle
                      • Schoology

                      Solutions for Publishing Houses

                      Solutions for Technical Writers

                      Solutions for Chemistry

                      Integrations

                      • HTML Editors
                      • MathType in WordPress

                      Pricing

                      Company

                      Careers

                      Blog

                      Contact Us

                      Buy Now

                      Plugin Downloads

                      © Wiris 2025

                      • Cookie Settings
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Powered by Helpjuice
                      Expand