Modular Arithmetic or Patterns in Number Endings