Limit cycles of a perceptron