Four digits number which is divisible by 7 are 1001,1008,1015,....,9996.
Hence, total number of such numbers =1286
Median =2(2N)thobservation+(2N+1)thobservation [∵N is even ]
Median =2(21286)thobservation+(21286+1)thobservation =2643th+644th =2(1001+(642)7)+(1001)+(643)7) =22(1001)+7(642+643) =22(1001)+7(1285) =1001+4497.5=5498.5