Depends on training. I remember reading an example for modular arithmetic where it brute forced stuff, but after enough input and training it started using the underlying mechanisms of modular arithmetic