Invia SMS: Elementary number theory with applications