>>117
n=5k+1,5k+2,5k+3,5k+4 (kは任意の整数)に場合分け