Quotient
Examples
open all close allBasic Examples (2)
Scope (16)
Numerical Evaluation (8)
Quotient works over integers:
Quotient[13, 4]Quotient[19 / 3, 5 / 2]Quotient[4.56, 2.5]Quotient[E ^ E ^ E, Pi]Quotient[10.4 + 8I, 4. + 5I]Quotient[10 ^ 90, NextPrime[10 ^ 80]]Compute quotients with offsets:
Quotient[7, 3, 1]Quotient threads elementwise over lists:
Quotient[{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 3]Symbolic Manipulation (8)
Reduce[Quotient[2x ^ 2 + 1, 2] == Quotient[3x ^ 3, x ^ 2] && x < 10, x]Refine[Quotient[2 n - 3, 7], (n + 2) / 7∈Integers]Simplify[Quotient[4 n + 5, 2], Element[n, Integers]]Expand Quotient in terms of Floor:
FunctionExpand[Quotient[m, n]]Express Quotient as a piecewise function:
PiecewiseExpand[Quotient[2x + 1, 3], 0 < x < 5]Integrate[Quotient[n ^ 2, 3] ^ 2, {n, 0, 5}]DifferenceRootReduce[Quotient[n, 10], n]GeneratingFunction[Quotient[n, 5], n, x]Applications (11)
Basic Applications (6)
Table of the quotients of the first 100 pairs of integers:
Grid[Table[If[i * j == 0 , If[i + j == 0, "", Style[i + j, Red, Italic, Bold]], Quotient[i, j]], {i, 0, 10}, {j, 0, 10}], ...]Plot the quotient of two integers:
MatrixPlot[Table[Quotient[a, b], {a, 20}, {b, 20}], PlotLegends -> Automatic]Plot the quotient of a number of division by 2:
Plot[Quotient[x, 2], {x, -5, 5}]Plot[Quotient[x ^ 2, x - 1], {x, -2, 2}]Produce a 3D plot of the quotient of two functions:
Plot3D[Quotient[x y, Max[x, y]], {x, -5, 5}, {y, -5, 5}]Plot the quotient of two complex variables:
Plot3D[Abs[Quotient[x + I y, 3 - 2I]], {x, -5, 5}, {y, -5, 5}]Number Theory (5)
Use NestWhileList to compute Quotient for positive arguments:
myQuotient[m_, n_] := Length[NestWhileList[n + #&, n, # ≤ m&]] - 1;myQuotient[26, 7]Quotient[26, 7]Demonstrate how division works:
m = 7;
n = 2;n * Quotient[m, n] + Mod[m, n] == mCount the number of positive integers less than 1000 divisible by 2 or 3, but not divisible by 6:
With[{n = 1000}, Quotient[n, 2] + Quotient[n, 3] - 2Quotient[n, 6]]Count[Range[1000], n_ /; (Divisible[n, 2] || Divisible[n, 3]) && !Divisible[n, 6]]Implement the Euclidean algorithm:
euclid[a_, b_] := FixedPointList[{#2, If[#2 == 0, 0, # - Quotient[##]#2]}&@@#&, {a, b}][[-3, 1]];euclid[12, 24]GCD[12, 24]Simplify expressions containing Quotient:
FullSimplify[Quotient[m + k n, n] == Quotient[m, n] + k, {m, n, k}∈Integers]FullSimplify[Quotient[a ^ 2 - b ^ 2, a - b], {a, b}∈Reals]Properties & Relations (6)
The first part of QuotientRemainder is the Quotient:
First[QuotientRemainder[7, 2]]Quotient[7, 2]Quotient[m,n] is equivalent to Floor[m/n] for integers:
Quotient[83, 16]Floor[83 / 16]n*Quotient[m,n,d]+Mod[m,n,d] is always equal to m:
FullSimplify[n Quotient[m, n, d] + Mod[m, n, d] == m, {m, n, d}∈Integers]Quotient[m,n]+FractionalPart[m/n] is always equal to
for positive integers:
Quotient[24, 7] + FractionalPart[24 / 7]Use PiecewiseExpand to express as a piecewise function:
PiecewiseExpand[Quotient[2 x + 1, 3], 0 < x < 5]Simplify expressions containing Quotient:
FullSimplify[Quotient[m, n]∣m, n∣m && {m, n}∈Integers]FullSimplify[Quotient[a b, b], {a, b}∈Integers]Possible Issues (1)
Quotient does not automatically resolve the value:
Quotient[2, 1 + (Pi + 1) ^ 2 - Pi ^ 2 - 2Pi - 1 + 10 ^ -100]
Simplify[%]Interactive Examples (1)
Neat Examples (2)
Plot the arguments of the Fourier transform of the Quotient:
ArrayPlot[Arg[Fourier[Table[Quotient[m, 12n], {m, 100}, {n, 100}]]]]Plot the Ulam spiral of the Quotient:
ulam[n_] := Partition[Permute[Range[n ^ 2], Accumulate[Take[Flatten[{{n ^ 2 + 1} / 2, Table
[(-1) ^ j i, {j, n}, {i, {-1, n}}, {j}]}], n ^ 2]]], n]ArrayPlot[Quotient[ulam[61], 450], ColorFunction -> "BlueGreenYellow"]Tech Notes
Related Guides
Related Links
History
Introduced in 1988 (1.0) | Updated in 1999 (4.0) ▪ 2000 (4.1) ▪ 2002 (4.2)
Text
Wolfram Research (1988), Quotient, Wolfram Language function, https://reference.wolfram.com/language/ref/Quotient.html (updated 2002).
CMS
Wolfram Language. 1988. "Quotient." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2002. https://reference.wolfram.com/language/ref/Quotient.html.
APA
Wolfram Language. (1988). Quotient. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Quotient.html
BibTeX
@misc{reference.wolfram_2026_quotient, author="Wolfram Research", title="{Quotient}", year="2002", howpublished="\url{https://reference.wolfram.com/language/ref/Quotient.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_quotient, organization={Wolfram Research}, title={Quotient}, year={2002}, url={https://reference.wolfram.com/language/ref/Quotient.html}, note=[Accessed: 12-June-2026]}