WOLFRAM

gives a list of the quotient and remainder from division of m by n.

Details

  • QuotientRemainder is also known as the ratio and quantity "left over" from division of m by n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • QuotientRemainder[m,n] returns the ratio of m,n and the quantity "left over".

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Compute the quotient and remainder of two numbers:

Out[1]=1

Plot the sequence of quotients:

Out[1]=1

Plot the sequence of remainders:

Out[2]=2

Scope  (7)Survey of the scope of standard use cases

QuotientRemainder works over integers:

Out[2]=2

Rational numbers:

Out[1]=1

Inexact real numbers:

Out[1]=1

Exact numbers:

Out[1]=1

Complex numbers:

Out[1]=1

Compute for large integers:

Out[1]=1

QuotientRemainder threads elementwise over lists:

Out[1]=1

Applications  (8)Sample problems that can be solved with this function

Basic Appications  (3)

Plot the quotient of a number of division by 5:

Out[5]=5

Plot the remainder of a number of division by 5:

Out[1]=1

Plot the quotient of two integers:

Out[1]=1

Number Theory  (5)

Use NestWhileList to compute the quotient of positive arguments:

Out[2]=2

Compare with:

Out[5]=5

Use Floor to compute the quotient for integers:

Out[1]=1
Out[2]=2

Demonstrate how division works:

Out[2]=2

Count the number of positive integers less than 1000 divisible by 2 or 3, but not divisible by 6:

Out[1]=1

Direct count:

Out[2]=2

The Euclidean algorithm:

Out[2]=2

Compare with:

Out[3]=3

Properties & Relations  (2)Properties of the function, and connections to other functions

The first part of QuotientRemainder is the Quotient:

Out[1]=1
Out[2]=2

The second part of QuotientRemainder is the Mod:

Out[1]=1
Out[2]=2

Neat Examples  (2)Surprising or curious use cases

Plot the arguments of the Fourier transform of the QuotientRemainder:

Out[2]=2

Plot the Ulam spiral of the QuotientRemainder:

Out[2]=2
Wolfram Research (2007), QuotientRemainder, Wolfram Language function, https://reference.wolfram.com/language/ref/QuotientRemainder.html.
Wolfram Research (2007), QuotientRemainder, Wolfram Language function, https://reference.wolfram.com/language/ref/QuotientRemainder.html.

Text

Wolfram Research (2007), QuotientRemainder, Wolfram Language function, https://reference.wolfram.com/language/ref/QuotientRemainder.html.

Wolfram Research (2007), QuotientRemainder, Wolfram Language function, https://reference.wolfram.com/language/ref/QuotientRemainder.html.

CMS

Wolfram Language. 2007. "QuotientRemainder." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuotientRemainder.html.

Wolfram Language. 2007. "QuotientRemainder." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuotientRemainder.html.

APA

Wolfram Language. (2007). QuotientRemainder. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuotientRemainder.html

Wolfram Language. (2007). QuotientRemainder. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuotientRemainder.html

BibTeX

@misc{reference.wolfram_2025_quotientremainder, author="Wolfram Research", title="{QuotientRemainder}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/QuotientRemainder.html}", note=[Accessed: 26-March-2025 ]}

@misc{reference.wolfram_2025_quotientremainder, author="Wolfram Research", title="{QuotientRemainder}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/QuotientRemainder.html}", note=[Accessed: 26-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_quotientremainder, organization={Wolfram Research}, title={QuotientRemainder}, year={2007}, url={https://reference.wolfram.com/language/ref/QuotientRemainder.html}, note=[Accessed: 26-March-2025 ]}

@online{reference.wolfram_2025_quotientremainder, organization={Wolfram Research}, title={QuotientRemainder}, year={2007}, url={https://reference.wolfram.com/language/ref/QuotientRemainder.html}, note=[Accessed: 26-March-2025 ]}