On subtracting 5 from each number:
16 − 5 = 11
36 − 5 = 31
40 − 5 = 35
The required number will be the least common multiple of 11, 31 and 35.
L.C.M. of 11, 31 and 35 = 11×31×35 as they are relative prime numbers
= 11935
This is because they do not have any factor in common.
So, 11935 is the required number.