Calculating the acceleration due to gravity at depth R
Consider a spherical shell of radius r and thickness dr
Mass of this shell, m=4πr2x∂r
acceleration due to this mass at distance R from center = ∂a=G4πr2x∂rR2
aR=∫R0G4πr2x∂rR2=4πxGR3
Calculating acceleration due to gravity at surface
acceleration due to this mass at distance 2R from center = ∂a=G4πr2x∂r4R2
a2R=∫R0G4πr2x∂r4R2+∫2RRG4πr2x∂r4R2=4πxGR4∗3+4πyG4R2[(2R)23−R33]
Therefore:
aRa2R=11
=> xy=73
So, n=7