How many different​ three-number "combinations" are possible on a combination lock having 40 numbers on its​ dial? (hint:​ "combination" is a misleading name for these locks since repetitions are allowed and order makes a​ difference.)