8 = 1 × 2 × 2 × 2 = 23
12 = 1 × 2 × 2 × 3 = 22 × 31
18 = 1 × 2 × 3 × 3 = 21 × 32
30 = 1 × 2 × 3 × 5 = 21 × 31 × 51
LCM of 8, 12, 18, and 30 = 23 × 32 × 51 = 360
Largest 4-digit number is 9999
Now, if we divide 9999 by 360, we will get 27.78 as quotient.
The integer just less than 27.78 is 27
∴ Required number = 360 × 27 = 9720
Hence, the greatest number of four digits which is exactly divisible by each of 8, 12, 18 and 30 is 9720.