Although 'I'm attracted to you like the earth is attracted to the sun -- with a large force inversely proportional to the distance squared' is not a traditionally great pick up line, it appears to have worked for the character in the mural. The relationship he is referring to is F = GMm/r^2, where G is the gravitational constant, M and m are the two masses, and r is the distance between the two masses. Since Force is in the numerator and r^2 is in the denominator, the larger the distance, the less force (which is what inversely proportional means).