how many numbers greater than 1000,but not greater than 4000 can be formed with digits 0,1,2,3,4 if:i)Repetition of digits is allowed? ii)Repetition og digits is not allowed?

i) possible nos. for the 1st(thousands) place are 1,2,3.

then no. of nos. can b formed = 3*5 *5*5

ii) ans. = 3*4*3*2