Pretty good solutions from the experts already but here's a more detailed approach. This is essentially a complex arithmetic sequence question.
Question is asking for 4 digit numbers: _ _ _ _
so the smallest # would be 1,000 and the largest would be 9,999
Info #1:
1,000 <_ 3n <_ 9,999
so: 333.33 <_ n <_ 3,333
so from here we know that we are looking at only 4 digit numbers so would bump up the range to min: 1,000 <_ n <_ 3,333 (ignore the numbers from 333.33 to 999)
Info #2:
1,000 <_ 1/3n <_ 9,999
3,000 <_ n < 9,999*3
From here we can infer that 9,999*3 = 29,997 which is 5 digits, and we already knew that that 9,999 was the top of the range so can ignore the 29,997.
Combine the restrictions from Info 1 (max range is 3,333) and Info 2 (min range is 3,000) and we can get that:
3,000<_ n <_ 3,333
Next, we are looking at the number of multiples of 3 between 3,000 and 3,333 inclusive --> this is an arithmetic sequence.
Apply the formula: An = Ai + (n-1)d
3,333 = 3000 + (n-1)3
333 = (n-1)3
111 = n-1
.'. n = 112