method which calculates IM for n gammas, and calculating IM(6/7g) and IM(10g)