Question 1075841
With repeats there are 40 * 40 * 40 = 64000 combinations
Without repeats there are 40 * 39 * 38 = 59280
:
There are 64000 - 59280 = 4720 combinations that include repeats
: