12-bit Computer Discrete Math Conceptual Question

99 Views Asked by At

The question about the Duodec-1 computer, manufactured by the Duosomata Computer Corporation. It has 12-bit words and represents integers in two’s-complement form.

Question: Can the Duodec-1 represent an integer $n$ such that $n\neq 0$ and $n = −n$? If your answer is yes, then write $n$ in decimal (base $10$). If your answer is no, then briefly explain why.

Attempted Answer: I said no because if $n = -n$, then the integer wouldn't be in two-complements form. If $n$ did not equal $0$, then there would be the problem of $n = 0$ and $n = -0$, and two's complement form avoids this.

I'm a bit confused on what this question is actually asking.