using the counting principlessome lottery tickets consists of 6 numbers each ranging from 1 to 40. if repeated numbers are permitted, how many different tickets are there?