X + 1/X = 3 两边都进行平方,得
X*X + 1/X * 1/X + 2 * X * 1/X = 9
X*X + 1/X *1/X + 2 = 9
X*X + 1/X *1/X = 7
所以答案是7