a method of generating M sequences is introduced. The method is based on the principle of cycle joining and a counting formula is given. A simple algorithm of generating M sequences is given
pairs of nonsingular boolean functions generate unqiue M sequence
then the number of generated M sequences of period 2n+1 is 22n-1-1.