Neuronal arithmetic