# of factors for 3*17*23*40:
All besides 40 is prime.
Prime factorization of 40 = 2^3 * 5
So 3*17*23*40 = 2^3*3*5*17*23
To find the total # of factors, you take each factor and find the total possible exponents that could result from it. (Don't think I'm explaining it quite well, but...)
For 2^3, you can have 2^0, 2^1, 2^2, or 2^3. So altogether, you have 4 possibilities. (Remember that 2^3 = 8 and the factors of eight are 1, 2, 4, and 8 which are respectively equal to 2^0, 2^1, 2^2, and 2^3.)
3 = 3^0 and 3^1 = 2 possibilities
5 = 5^0 and 5 ^1 = 2 possibilities
17 = 17^0 and 17^1 = 2 possibilities
23 = 23^0 and 23^1 = 2 possibilities
So, to find the total number of combinations, you multiply. 4*2*2*2*2 = 64