How do I handle base 14 subtraction with larger numbers?

  • Thread starter Thread starter jalisco
  • Start date Start date
  • Tags Tags
    Base
AI Thread Summary
Base 14 subtraction can be tricky, especially when subtracting a larger number from a smaller one. In the example of 35 - AB, the correct approach involves borrowing from the next column, similar to base 10. The first step is to subtract B from 5, requiring a borrow, resulting in 8. The second step involves subtracting A + 1 from 3, which also necessitates borrowing, yielding 6. The final answer is 68 in base 14, demonstrating that negative results are not typically recorded in this system.
jalisco
Messages
3
Reaction score
0
I am trying to solve the following problem.

It is not homework since I am just brushing up =) but I will try posting it here.

I have the following base 14 subtraction problem:

35 - AB = ?

I can look up the answer, which is shown as 68 (base 14).

But, for the life of my, I can figure it out...

The problem I am having is that AB appears to be larger (?) than the 35?

How do I subtract a larger number, from a smaller, and not end up with a negative number?

I can figure out the first digit (8).

Since B is larger, we got to carry over from the 3A column, and we end up with 14+5 (=19) - B (=11), so we end up with 8.

I get confused in handling the other column, which should now read 3 minus A (and the carried over 1).

How does that turn into six?

thank you.
 
Mathematics news on Phys.org
Subtracting a larger from a smaller will still give you a negative number, no matter what the base.

The trick is to do just what you'd do in base 10. First, flip them around (write "AB - 35"). Then, negate your final result.

In this case, once you do that, the math is straightforward. I get -76(base14). Are you sure the answer you've looked up is right?
 
that is the answer the book has.

I also suspect the answer is incorrect.

I got the same answer as you.

Here is the way they wrote the solution:

35
- AB
1
------
68
 
ok figured it out...there was a trick that I did not know...

1. apparently negative is not really allowed...

35 - AB...(base 14)

step one (from the right):
subtract 5 - B.
Since B is larger, we borrow from the left...
5 + 14 = 19, then minus B (= 11 in base 14) == 8.

step two: next spot over...we need to subtract A + 1 from 3. Since 3 is smaller, we need to borrow again, from the left.

3+14 = 17 minus (A + 1 = 11) == 6.

Per what I just found:

# A negative difference requires several steps:

* Add (in decimal in your head) the radix n to the difference you already computed. The result should no longer be negative.
* Record the result as a base-n digit at the bottom of the same column.
* Write a 1 as the borrow in the next column left.

# Any extra borrow past the leftmost column is not recorded in the answer. It is called the borrow out and is usually stored somewhere else on the computer. The answer must have the same number of digits as the two operands.

Thanks tho!

Jalisco
 
Ah, it sounds like you're doing modular arithmetic. Now it makes sense.

Incidentally, note that 76 + 68 = 100 in base 14, showing the equivalence of the two answers.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top