Variations with repetition

Variations with repetition are the different ordered arrangements of a k-element subset of an n-set, allowing repetitions.

Syntax

variations_with_repetition(Integer, Integer)
 Vector, Integer)

Description

Given two integers nLaTeXn and kLaTeXk, computes all possible arrangements described above.

combinatorics.variations_with_repetition1.calc.png

Given a list and a vector with nLaTeXn elements, returns a list with all the kLaTeXk-subsets.

combinatorics.variations_with_repetition2.calc.png