Alternative Ways To Find The Remainder of A/B?

  • I
  • Thread starter iScience
  • Start date
  • Tags
    Remainder
In summary, the conversation is discussing a method for finding the decimal remainder of an arbitrary set of integers without actually going through the division process. The method involves "casting out" copies of the divisor and a systematic process for determining the number of copies to cast out. The conversation also includes examples of this method being used for dividing by 3 and 19.
  • #1
iScience
466
5
I guess this would be a Number Theory question. Short of actually going through the division process, is there another way to find the decimal remainder of an arbitrary set of integers { A , B }

$$\frac{A}{B} , A > B$$
 
Mathematics news on Phys.org
  • #2
I would say no. it may seem as if there is, for example when finding the remainder of division by 3 you just add up the digits. but that ignores the fact that in doing that you are really doing the division just not recording the answer. i.e. the remainder of 457 on division by 3 is 4+5+7 = 16, hence going on it is 1+6 = 7, or 7-6 = 1. but you are really "casting out 3's" which is division by 3. e.g. the first step of replacing 457 by 16, has cast out 4x33 of them from the 400, plus 5x3 of them from the 50, or 147 of the 3's, leaving 16 or five more 3's, so the answer to the division has actually been computed as 152 with remainder 1, but this answer has been ignored.

similarly to compute any remainder one could "cast out B's" but you are really dividing by B. e.g. the remainder of 457 on division by 19, could be successively computed by casting out 190 + 190 or 380, i.e. twenty 19's, leaving 77, then casting out three more or 57, leaving 20, then one more 19, leaving remainder 1. but if you look back at that process you will see the division is there, and the answer is 10+10+3+1 = 24 with remainder 1.
 
  • #3
mathwonk said:
I would say no. it may seem as if there is, for example when finding the remainder of division by 3 you just add up the digits. but that ignores the fact that in doing that you are really doing the division just not recording the answer. i.e. the remainder of 457 on division by 3 is 4+5+7 = 16, hence going on it is 1+6 = 7, or 7-6 = 1. but you are really "casting out 3's" which is division by 3. e.g. the first step of replacing 457 by 16, has cast out 4x33 of them from the 400, plus 5x3 of them from the 50, or 147 of the 3's, leaving 16 or five more 3's, so the answer to the division has actually been computed as 152 with remainder 1, but this answer has been ignored.

similarly to compute any remainder one could "cast out B's" but you are really dividing by B. e.g. the remainder of 457 on division by 19, could be successively computed by casting out 190 + 190 or 380, i.e. twenty 19's, leaving 77, then casting out three more or 57, leaving 20, then one more 19, leaving remainder 1. but if you look back at that process you will see the division is there, and the answer is 10+10+3+1 = 24 with remainder 1.

Where were you getting the double tens, and the single three from? Were the double tens systematically determined or just randomly? what if the dividend was 371, what would the double tens then be?
 
  • #4
190 is ten 19's so 380 = 190 +190 is 10+10 nineteens.

if i divide 457 by 371 i just cast out the one copy of 371 by subtracting, and get 29+57 = 86 as remainder, and dividend 1. you just count how many copies of the divisor you have cast out, i.e. subtracted out.
 
  • #5
mathwonk said:
190 is ten 19's so 380 = 190 +190 is 10+10 nineteens.

if i divide 457 by 371 i just cast out the one copy of 371 by subtracting, and get 29+57 = 86 as remainder, and dividend 1. you just count how many copies of the divisor you have cast out, i.e. subtracted out.

Are you just multiplying it by ten because it's quick and easy to do?

I meant 371 / 19. But I think I get the flow. But just for my understanding what would you do if it was 155 / 19?
 
  • #6
yes. the point is to =cast out, i.e. subtract, copies of the divisor, so to make it somehow easier than actual full division, you just do ones that are easy.

like the trick for dividing by 3, is to know in advance that 100 = 3x33 + 1, and 1000 = 3x333 + 1, etc... so the easy ones here are 9,99,999,9999,...155/19 maybe i would throw out 190, which is 35 too much, so i get -35, then add in 38 getting 3. does that work? let's see 10-2 = 8 and, 8x19 = 152, yep, that's off by 3.
 
Last edited by a moderator:

1. What are alternative ways to find the remainder of A/B?

There are several alternative ways to find the remainder of A/B, including using the modulo operator (%), long division, prime factorization, and the Euclidean algorithm.

2. How does the modulo operator help find the remainder of A/B?

The modulo operator (%) returns the remainder after dividing A by B. This can be used to find the remainder of A/B without doing long division or other methods.

3. Can long division be used to find the remainder of A/B?

Yes, long division can be used to find the remainder of A/B. The remainder is the number that is left over after dividing A by B.

4. What is the process of using prime factorization to find the remainder of A/B?

To use prime factorization, you need to find the prime factors of both A and B. Then, you can divide the prime factors of A by the prime factors of B and determine the remainder from the resulting fractions.

5. When is the Euclidean algorithm used to find the remainder of A/B?

The Euclidean algorithm is often used when A and B are large numbers, as it is a more efficient method of finding the remainder compared to long division or prime factorization.

Similar threads

Replies
10
Views
383
  • General Math
Replies
1
Views
585
Replies
5
Views
2K
Replies
4
Views
1K
Replies
1
Views
1K
  • General Math
Replies
26
Views
2K
  • General Math
Replies
8
Views
1K
  • General Math
Replies
1
Views
2K
Replies
4
Views
403
  • General Math
2
Replies
47
Views
3K
Back
Top