S={2*4*6*...*N; nếu N chẵn, 1*3*5*...N; nếu N lẻ.