Elementary number theory module