Abstract
In this paper, periodic sequences with period N and nonlinear complexity N -2 are investigated. A necessary and sufficient condition for characterizing such sequences is established, and a recursive method is proposed to generate all possible binary sequences with period N and nonlinear complexity N -2. The exact number of such sequences is also determined.