mathematics of behavior and intelligence