QuotientRemainder
✖
QuotientRemainder
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 allBasic Examples (2)Summary of the most common use cases
Compute the quotient and remainder of two numbers:

https://wolfram.com/xid/0bto17b3nqju-czivc

Plot the sequence of quotients:

https://wolfram.com/xid/0bto17b3nqju-0nx3r

Plot the sequence of remainders:

https://wolfram.com/xid/0bto17b3nqju-phkfa7

Scope (7)Survey of the scope of standard use cases
QuotientRemainder works over integers:

https://wolfram.com/xid/0bto17b3nqju-j8wraz


https://wolfram.com/xid/0bto17b3nqju-79jea


https://wolfram.com/xid/0bto17b3nqju-8t8al


https://wolfram.com/xid/0bto17b3nqju-mvqzrl


https://wolfram.com/xid/0bto17b3nqju-eyz8uq


https://wolfram.com/xid/0bto17b3nqju-cmsvct

QuotientRemainder threads elementwise over lists:

https://wolfram.com/xid/0bto17b3nqju-bkrcck

Applications (8)Sample problems that can be solved with this function
Basic Appications (3)
Plot the quotient of a number of division by 5:

https://wolfram.com/xid/0bto17b3nqju-csuwa9

Plot the remainder of a number of division by 5:

https://wolfram.com/xid/0bto17b3nqju-7uyhs4

Plot the quotient of two integers:

https://wolfram.com/xid/0bto17b3nqju-fpgpxl

Number Theory (5)
Use NestWhileList to compute the quotient of positive arguments:

https://wolfram.com/xid/0bto17b3nqju-t971f

https://wolfram.com/xid/0bto17b3nqju-963m1


https://wolfram.com/xid/0bto17b3nqju-pxyr3s

Use Floor to compute the quotient for integers:

https://wolfram.com/xid/0bto17b3nqju-drekya


https://wolfram.com/xid/0bto17b3nqju-ngsz7w

Demonstrate how division works:

https://wolfram.com/xid/0bto17b3nqju-oy5old

https://wolfram.com/xid/0bto17b3nqju-752m7

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

https://wolfram.com/xid/0bto17b3nqju-booqau


https://wolfram.com/xid/0bto17b3nqju-byyp9v


https://wolfram.com/xid/0bto17b3nqju-nacy6n

https://wolfram.com/xid/0bto17b3nqju-f2bb9


https://wolfram.com/xid/0bto17b3nqju-ii4c9n

Properties & Relations (2)Properties of the function, and connections to other functions
The first part of QuotientRemainder is the Quotient:

https://wolfram.com/xid/0bto17b3nqju-gnde2j


https://wolfram.com/xid/0bto17b3nqju-fc5gy

The second part of QuotientRemainder is the Mod:

https://wolfram.com/xid/0bto17b3nqju-u8slch


https://wolfram.com/xid/0bto17b3nqju-b4kib4

Neat Examples (2)Surprising or curious use cases
Plot the arguments of the Fourier transform of the QuotientRemainder:

https://wolfram.com/xid/0bto17b3nqju-1jmn54

Plot the Ulam spiral of the QuotientRemainder:

https://wolfram.com/xid/0bto17b3nqju-zp3c6

https://wolfram.com/xid/0bto17b3nqju-qhm0kv

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
]}
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
]}