What is the division algorithm?

  • Thread starter Thread starter Daniellec08
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around the division algorithm, specifically focusing on expressing an integer in the form 10q + r, where 0 ≤ r ≤ 9. The original poster expresses difficulty in starting the proof and considers using induction, while also noting the context of divide-and-conquer and bootstrap case analysis.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the potential use of induction, with suggestions to consider cases for r. Others propose examining the representation of integers in base-10 and factoring out powers of 10. There are also inquiries about the concepts of divide-and-conquer and bootstrap case analysis in relation to the problem.

Discussion Status

The discussion is active, with various approaches being explored. Some participants provide guidance on how to structure the proof, while others raise questions about the underlying concepts and assumptions related to the division algorithm.

Contextual Notes

There is mention of a lack of examples in the textbook, which may be contributing to the original poster's confusion. Additionally, the problem is noted as a special case of the division algorithm, prompting further exploration of related concepts.

Daniellec08
Messages
1
Reaction score
0
10q +r, where 0<=r<=9?

So, I am struggling through my proofs class and I'm sure this problem is pretty easy, but I am just not seeing how I should begin. My first thought was induction since that was the last section but I think not.

Question: Show that ay integer can be written in the form 10q +r, where 0<=r<=9.

It's in the section with divide-and-conquer and bootstrap case analysis.

I think I might have to prove this for each case, 0 to 9 but there are no examples of how to do this in the book.

Thanks
 
Physics news on Phys.org


You could definitely use induction on this. In your inductive step, use two cases-
Suppose that there exist integers q and r, 0<=r<=9, so that n=10q+r.
If 0<=r<=8, then n+1=...
If r=9, then n+1=...
 


I think that I would approach it this way: Any integer in base-10 form can be written as a linear combination of powers of 10:
[tex]a_n\cdot 10^n + a_{n - 1}\cdot 10^{n - 1} + ... + a_1 \cdot 10 + a_0[/tex]

where 0 <= ais <= 0, i = 0, ..., n
Factor 10 out of all but the last term and you're almost done.
 


Daniellec08 said:
It's in the section with divide-and-conquer and bootstrap case analysis.
What are divide-and-conquer and bootstrap case analysis? This problem is a special case of the division algorithm, so I'm thinking it may have to do with whatever divide-and-conquer means.

In one proof, you look at the set of numbers of the form a-10n, where n is an integer, and choose the least non-negative element. (You have to show that you can do that.) Call that r. Then r=a-10q for some integer q, so a=10q+r. You just then have to prove that r is between 0 and 9. If you assume r<0 or r>9, you can show it leads to a contradiction.
 

Similar threads

Replies
15
Views
4K
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 13 ·
Replies
13
Views
1K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
2
Views
1K
Replies
3
Views
2K