Maximum and minimum values of 7s complement in base 7

Click For Summary

Discussion Overview

The discussion revolves around determining the maximum and minimum values that can be represented using a 7's complement representation in base 7, specifically for a 5-digit number. Participants explore the implications of this representation and how it compares to binary and other complement systems.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that numbers starting with an odd digit are negative and those starting with an even digit are positive, questioning if 77777 would be the lowest number and 67777 the highest.
  • Another participant references binary examples to illustrate minimum and maximum values, indicating that the minimum value in Java is 2^-31 and the maximum is 2^31 - 1.
  • There is a discussion about how the 7's complement would work, with one participant asking if odd numbers are negative and even numbers are positive, and whether 6 should be added instead of 1 as in two's complement.
  • Clarifications are made regarding the representation of values in binary and one's complement, noting that 11111 represents "negative zero" and 00000 represents "positive zero".
  • One participant questions the digit range for base 7, suggesting that if each digit ranges from 0 to 7, it would imply a base 8 number, and asks if the problem is actually about 7's complement for a base 8 number.
  • A later reply acknowledges the confusion and confirms that the discussion is indeed about base 7 with 7's complement, where digits range from 0 to 6.

Areas of Agreement / Disagreement

Participants express uncertainty about the correct interpretation of the problem, particularly regarding the digit range and the application of 7's complement. There is no consensus on how to approach the maximum and minimum values in this context.

Contextual Notes

There are limitations in the discussion regarding the assumptions about digit ranges and the definitions of complement systems, which remain unresolved.

nautolian
Messages
34
Reaction score
0

Homework Statement



What are the maximum and minimum values that can be represented using a 7s complement representation in base 7, using a 5 digit number?

Homework Equations





The Attempt at a Solution



Would you divide the numbers so that any number starting with an odd digit is negative and any number starting with an even digit is positive? I actually have no idea how to do this. Would you start with 77777 as the lowest number? and then the highest would be 67777? Thanks in advance for the help
 
Physics news on Phys.org
use binary as an example and then abstract to base 7

in java for example the min value 2^-31 and the max value is 2^31 -1

http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Integer.html
 
Last edited by a moderator:
In terms of seven's complement though, how would that work.

So for a 5 digit binary number, the highest value would be 01111 (15), and the lowest would be 10001(-15), right? So for seven's complement would you still say odd numbers are negative and evens are positive? So would you add 6 instead of one at the end for 7's complement vs. two's complement? Thanks!
 
nautolian said:
So for a 5 digit binary number, the highest value would be 01111 (15), and the lowest would be 10001(-15)
For a 5 digit 1's complent number, the lowest value is 10000 (-15), and the highest is 01111 (+15). Note that 11111 is "negative zero" and 00000 is "positive zero".
 
Don't you have to add 1 at the end for the negative and isn't that two's complement? So how would it work for 7's complement in base 7?
 
nautolian said:
So how would it work for 7's complement in base 7?
I'm a bit confused by the original post. If each digit ranges from 0 to 7, isn't that a base 8 number? If so, then is the problem statement asking about 7's complement for a base 8 number, which would be similar to 1's complement for a base 2 number? If not, shouldn't each digit for a base 7 number range from 0 to 6, in which case 7's complement for a base 7 number would be similar to 2's complement for a base 2 number?
 
Sorry, yes, I messed up on that. So it is base 7 with 7s complement. ie, numbers from 0-6.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K