The Largest number of four digits is 9999. Required number must be divisible by L.C.M. of 12,15,18,27 i.e. 540. On dividing 9999 by 540,we get 279 as remainder . Required number = (9999-279) = 9720.
Smallest number of five digits is 10000. Required number must be divisible by L.C.M. of 16,24,36,54 i.e 432, On dividing 10000 by 432,we get 64 as remainder. Required number = 10000 +( 432 – 64 ) = 10368.