Invia SMS: Mathematics and logic