Experiment with arithmetic version 2

experimenting with new solutions
Arithmetic shortened version

reduced code length