Stav dette: Elementary number theory with applications