Combinations with repetition
Computes the number of ways to choose elements among , allowing repetitions.
Syntax
combinations_with_repetition(Integer, Integer)
combinations_with_repetition(List | Vector, Integer)
Description
Given two integers and , returns the number of ways to choose elements among , allowing repetitions.
Given a list or vector and an integer , returns a list with all the possible ways to choose element among , allowing repetition.