The integration is expressed as, In = 2π∫∞e−xcosnx dx Integrate the above integral by parts, In=[−e−xcosnx]2π∞−2π∫∞−e−x⋅ncosn−1x(−sinx)dx=0−2π∫∞ne−xcosn−1xsinxdx Again apply the integration by parts in the above integral, In=−n2In+n(n−1)In−2In(n2+1)=n(n−1)In−2In−2In=n2+1n(n−1) Substitute n = 2018 in the above equation, I2016I2018=20182+12018(2017)