Question

Show that integer division, $a$ div $b$, and remainder, $a \bmod b$, are primitive recursive. For two integers $a$ and $b$, with $b>0$, the so-called div-mod identity holds: $$ a=(a \operatorname{div} b) b+(a \bmod b) . $$ Furthermore, we have $$ 0 \leq(a \bmod b)<b . $$ (In Mathematica these two functions are Quotient $[a, b]$ and Mod $[a, b]$.)

   Show that integer division, $a$ div $b$, and remainder, $a \bmod b$, are primitive recursive. For two integers $a$ and $b$, with $b>0$, the so-called div-mod identity holds:
$$
a=(a \operatorname{div} b) b+(a \bmod b) .
$$
Furthermore, we have
$$
0 \leq(a \bmod b)<b .
$$
(In Mathematica these two functions are Quotient $[a, b]$ and Mod $[a, b]$.)
Show more…
Computer science with Mathematica: theory and practice for science, mathematics, and engineering
Computer science with Mathematica: theory and practice for science, mathematics, and engineering
Roman Maeder 1st Edition
Chapter 12, Problem 3 ↓

Instant Answer

verified

Step 1

Integer division $a \operatorname{div} b$ is the quotient of $a$ divided by $b$, disregarding any remainder. The remainder $a \bmod b$ is the integer $r$ such that $0 \leq r < b$ and there exists an integer $q$ (the quotient) such that $a = qb + r$. These  Show more…

Show all steps

lock
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Show that integer division, $a$ div $b$, and remainder, $a \bmod b$, are primitive recursive. For two integers $a$ and $b$, with $b>0$, the so-called div-mod identity holds: $$ a=(a \operatorname{div} b) b+(a \bmod b) . $$ Furthermore, we have $$ 0 \leq(a \bmod b)<b . $$ (In Mathematica these two functions are Quotient $[a, b]$ and Mod $[a, b]$.)
Close icon
Play audio
Feedback
Powered by NumerAI
*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Primitive Recursive Functions
Primitive recursive functions are those functions that can be constructed from basic functions such as the zero function, successor function, and projection functions using the operations of composition and primitive recursion. They form a class of total computable functions characterized by their construction from a finite set of rules, making them highly structured and predictable. This concept is central to computability theory and formal function definition in mathematics and computer science.
Division Algorithm
The Division Algorithm is a fundamental theorem in number theory stating that for any two integers a and b (with b > 0), there exist unique integers q (quotient) and r (remainder) such that a equals q times b plus r, where the remainder is non-negative and less than the divisor b. This theorem not only provides the basis for the division process but also underlies the argument for the primitive recursiveness of division and modulo functions.
Bounded Minimization
Bounded minimization is a process where one searches for the smallest value within a known finite range that satisfies a given condition. Its bounded nature guarantees that the search will terminate, ensuring that the resulting function is total and computable. This technique is crucial for defining functions such as integer division in a primitive recursive manner because it allows for the systematic search for the correct quotient while remaining within the confines of primitive recursion.

*

Recommended Videos

-
prove-if-a-b-mod-n-and-the-integers-a-b-n-are-all-divisible-by-d-0-then-ad-bd-mod-nd-70918

Prove if a = b mod n and the integers a, b, n are all divisible by d > 0 then a/d = b/d mod n/d.

Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever