mag methods for powers, factorials, bernoulli numbers (work in progress)