For how many positive integers \(n\) less than or equal to 1000 is \((\sin t + i \cos t)^n = \sin nt + i \cos nt\) true for all real \(t\)?

(第二十三届AIME2 2005 第9题)