# QuotientRemainder

QuotientRemainder[m,n]

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)

Compute the quotient and remainder of two numbers:

Plot the sequence of quotients:

Plot the sequence of remainders:

## Scope(7)

QuotientRemainder works over integers:

Rational numbers:

Inexact real numbers:

Exact numbers:

Complex numbers:

Compute for large integers:

## Applications(8)

### Basic Appications(3)

Plot the quotient of a number of division by 5:

Plot the remainder of a number of division by 5:

Plot the quotient of two integers:

### Number Theory(5)

Use NestWhileList to compute the quotient of positive arguments:

Compare with:

Use Floor to compute the quotient for integers:

Demonstrate how division works:

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

Direct count:

The Euclidean algorithm:

Compare with:

## Properties & Relations(2)

The first part of QuotientRemainder is the Quotient:

The second part of QuotientRemainder is the Mod:

## Neat Examples(2)

Plot the arguments of the Fourier transform of the QuotientRemainder:

Plot the Ulam spiral of the QuotientRemainder:
{"ft_lang_label":"__label__en","ft_lang_prob":0.66311485,"math_prob":0.9173838,"size":1608,"snap":"2021-31-2021-39","text_gpt3_token_len":417,"char_repetition_ratio":0.21571073,"word_repetition_ratio":0.05050505,"special_character_ratio":0.19962686,"punctuation_ratio":0.16853933,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99807256,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-27T07:40:14Z\",\"WARC-Record-ID\":\"<urn:uuid:2cc39bf2-e98f-411a-aecd-8b6eebaa8bde>\",\"Content-Length\":\"101334\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8d43c08f-5407-4ab1-b924-bcaac24af664>\",\"WARC-Concurrent-To\":\"<urn:uuid:caa0debc-c751-4809-9c90-69fdd4f02efa>\",\"WARC-IP-Address\":\"140.177.205.163\",\"WARC-Target-URI\":\"https://reference.wolfram.com/language/ref/QuotientRemainder.html\",\"WARC-Payload-Digest\":\"sha1:2XA3XIS2D2SDYUSVMXS5WRIK4ROXR6LZ\",\"WARC-Block-Digest\":\"sha1:BJIH2BEWLUOWE6LTNVLYBXKGMYAOOB7D\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046153223.30_warc_CC-MAIN-20210727072531-20210727102531-00415.warc.gz\"}"}