Given,
f(x)+f(x+k)=n ....(i)
Replacing x→x+k in above equation we get,
f(x+k)+f(x+2k)=n .....(ii)
Subtraction equation (i) from equation (ii) we get,
⇒f(x)=f(x+2k)
f(x) is periodic with period 2k
Now, I1=∫04nkf(x)dx=2n∫02kf(x)dx
I2=∫−k3kf(x)dx=2∫02kf(x)dx
Now integrating both side of f(x)+f(x+k)=n with limit ∫0k we get,
⇒∫0kf(x)dx+∫0kf(x+k)dx=nk
⇒∫0kf(x)dx+∫k2kf(x)dx=nk
⇒∫02kf(x)dx=nk
⇒I1=2n2k,I2=2nk
⇒I1+nI2=4n2k