Question 305601
0-39 is 40 numbers
If repeats are allowed, it's 40^3 = 64000
If not, it's 40*39*38 = 59280
If repeats are allowed, but not consecutive repeats, it's 40*39*39 = 60840