There is a famous formula (used e.g. in many Metatrader's MQL bound FANN derivatives)
n, n, n/2+1, 1
describing 4-layer (two hidden layers) network. Here n is the number of neurons in an input layer, the first hidden layer has n, the second n/2+1, and the output is a boolean.
Does anybody know the origin of this formula?