This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Number Theory

Modular arithmetic operations and sequences of numbers

You can perform elementary number-theoretic operations to find the LCM, GCD, modulus, quotient, and remainder. You also can find prime numbers, and special sequences of numbers, such as harmonic, Bernoulli, and Euler numbers.

Functions

expand all

divisorsDivisors of integer or expression
gcdGCD of numbers and polynomials
factorIntegerPowerPerfect power factoring
lcmLeast common multiple
modSymbolic modulus after division
powermodModular power of number
quoremQuotient and remainder
remRemainder after division
bernoulliBernoulli numbers and polynomials
eulerEuler numbers and polynomials
fibonacciFibonacci numbers
harmonicHarmonic function (harmonic number)
nextprimeNext prime number
nthprimenth prime number
prevprimePrevious prime number