有一个没见过的DS题,考完才想起自己做错了,哭死:
f(x) = x^n -1. n is positive integer. 问how many values of X that satisfy f(x) = 0.
(1)n is odd
(2)n is multiple of 3
答案应该是A,因为 if f(x) = 1, then x^n = 1, given that n is positive interger (so can't be 0).
(1) n为奇数,所以X只能是1。
(2)n为3的倍数,可以是3,可以是6,当n为3,x为1,但当n为6,x可以是1或者-1,答案并不能确定。所以选A。当时脑残选了D,估计数学50错的就是这一道,唉。。。。