It is very simple Sowji,

find LCM of 2,3,4...8 and 9 then subtract 1 from that number. that is it


Thanks,
James