The correct option is D (1−nn)f
Let the object distance be u, image distance be v and focal length be f.
From lens formula, 1v−1u=1f
⇒uv−1=uf .......(i)
Let height of the image be hi and height of the object be ho
Given, hi=n×ho
or magnification, m=hiho=vu=n
⇒v=n×u
From equation (i) we have,
⇒uu×n−1=uf
⇒(1n−1)=uf
∴u=(1−nn)f