Or Arithmetician. The boss dealt with prime and multiples of three, four and five. If you Google final fantasy tactics arithmetician their abilities follow the same guidelines.