Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • 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?

                        Give feedback about this article

                        Related Articles

                        • Integrate
                        • Interpolate
                        • Series
                        • Convergent?

                        Permutations with repetition

                        Syntax Description

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand