Invia SMS: Basic number theory