Modular functions can be calculated by threshold circuits that save energy by mimicking the brain's nuerons, according to Akira Suzuki, Kei Uchizawa, and, Xiao Zhou.

 

Read their proof in The Australian Computer Society'sTheory of Computing 2011: Energy-Efficient Threshold Circuits Computing Mod Functions