Prediction of solar activity on the basis of spectral characteristics of sunspot number