In Feynman lecture 30 the light intensity function derived under Fraunhoffer conditions is of the form $$I=I_0\frac{sin^2(\frac{n\phi}{2})}{sin^2(\frac{\phi}{2})}$$ The way I understand it, the phi here represents the phase difference between light coming from two adjacent slits. This varies as a function of the angle theta to the central maximum, and is given by $$\phi=\frac{kd}{n}sin(\theta)$$ If the diffraction grating is such that one slit is of size d/n and there are n slits.
Now, what I am confused about is that this seems to disagree with the same intenstiy function given by James Nearing: $$I=I_0\frac{sin^2(\frac{kdsin\theta}{2})}{sin^2(\theta)}$$ Any help is much appreciated.