Questions related with (base 2) representation of numbers and their unique properties arising out of number representation.

learn more… | top users | synonyms

1
vote
1answer
17 views

Does decimal fraction has hex value?/can hex be fraction?

I was wondering if a decimal fraction could be converted into a hexadecimal fraction? I have seen it many times ? but I have been also told that decimal or binary fraction has no meaning in hex. ...
1
vote
1answer
30 views

How many binary string are there such that there are no k consecutive characters are the same?

Given number $n$ and $k$. Count the number of string with length $n$ such that there are no $k$ consecutive characters are the same. Example with $n = 3, k = 3$, the answer is $6$. ($110, 001, 101, ...
0
votes
1answer
19 views

Why do we add 6 in BDC addition.

When performing addition to BCD, if we get an invalid BCD, we remedy this by adding a binary $6$ to our sum. Example: $0101 + 0110 = 1011$ (Invalid in BCD) So, we add $6$ to fix this. $1011 + 0110 ...
0
votes
1answer
30 views

Number of 2n-digit binary sequences

Find the number of 2n-digit binary sequences in which the number of 0's in the first n digits is equal to the number of 1's in the last n digits. I'm not sure how to approach the question. My ...
3
votes
2answers
25 views

Why are these two conversion methods (base 10 to base 2) equivalent

I've come across two methods for converting a base 10 number into its base 2 equivalent. I want to know why they are equivalent. Method 1: We're given a number $N$ to convert into binary 1) Find the ...
0
votes
1answer
24 views

Can we transform given strings to get the same string?

There are 2 binaries string $A, B$ (string just contains $0$ or $1$) Input: $A_1, A_2,\dots,A_{50}$ and $B_1, B_2,\dots,B_{50}$ Note that: $A_{51} = B_{51} = A_{52} = B_{52} = \dots = A_{\inf} = ...
0
votes
1answer
17 views

Boolean Algebra - What is the meaning of f(x) = ∑(N)?

Suppose you had: f(x,y,z) = ∑(2,3,4,5) What does this represent or map? For each of the variables x,y,z?
0
votes
1answer
596 views

Arithmetic Overflow and Underflowing

I am a bit unclear about underflowing in terms of binary representation. Let's say that an unsigned 8-bit variable gets overflown from the addition of $150+150$. A signed 8-bit variable gets ...
0
votes
0answers
20 views

Converting From Different Number Systems

I've been taught to convert from base 2 to base 10 using the following process: 10110 = $0\times1 + 1\times2 + 1\times4 + 0\times8 + 1\times16 = 0\times2^0 + 1\times2^1 + 1\times2^2 + 0\times2^3 + ...
0
votes
2answers
303 views

Quick logarithm calculation

In coming up with an algorithm for finding log (10) base 2, these are my thoughts. I wanted to know if this makes sense and how could I truly make it more efficient. The requirements are strictly not ...
0
votes
1answer
53 views

Is there a binary [10,6,4] code?

Using the sphere padding packing bound formula I can conclude that 1 + 12 + 66 $\ge$ $2^{6}$ which indicates that there MAY be a binary [10,6,4] code, however I cannot prove that there is. How can I ...
16
votes
3answers
2k views

Why are huge binary numbers about 3.3218 times longer than their decimal counterpart?

Why are huge binary nubers about $3.3218$ times longer than their decimal counterpart? I thought about this when I was writing this Python code: ...
2
votes
2answers
1k views

Terminating decimal number which is not terminating in binary

I know that when converting a decimal number from base 10 to base 2, the result might be not terminating, even though the number is terminating in base 10. For instance, 0.2 -> 0.0011 0011 0011 ... ...
0
votes
1answer
29 views

From an expression raised in a power of 2 to an expression raised in the power or 10

Is there a simple/"easy" way to convert a big number from a power of $2$ to a power of $10$ equivalent. Example: I had $2^{127}\cdot 1.9999999$ which I did the multiplication got the result and from ...
0
votes
2answers
24 views

Binary solving problem. 50 in binary number

The asnwers doesnt make sence for me. The binary number of 50 is 110010. Do I overlook something?
0
votes
2answers
43 views

Determine whether a number has an even number of 1's or not in a binary base

Assume that I have an ordinary number in Decmical base, now what I want to know is determining whether it has an even number of 1's in a binary base or not.and yet again I should emphasize the fact ...
0
votes
4answers
111 views

why binary is read right to left

May somebody explain this in other words? http://wiki.answers.com/Q/Why_do_you_read_binary_digits_right_to_left I know this is an akward question, but I really want to know the answer, it's just ...
0
votes
1answer
12 views

Linearly independent rows in a binay matrix

I need the algorithm to finding only the linearly independent rows in a binary matrix using XOR function. Example 1: The result: Example 2: The result: R4 is not included because:
0
votes
1answer
25 views

Finding a standard generator matrix given a binary code

My question is how do I find the standard generator matrix of a binary [7,6,2] code? From what I understand a generator matrix for $C$ is any $ k \times n$ matrix $ G$ with entries in $ ...
1
vote
1answer
14 views

Binary Gaussian Elimination of a matrix

Can anyone help me find the algorithm for the Binary Gaussian elimination of a matrix. for example: The output:
0
votes
1answer
5 views

How can I determine the base of the following numbers for the operations to be correct?

Given: 24)A + 17)A = 40)A How can I find the base of the following number (A) so the operations are correct? NOTE: I am not sure what topic this would fall under. Hence sorry for any misplaced ...
8
votes
3answers
87 views

Convert the following hexadecimal representation of 2’s complement binary numbers to decimal numbers.

I need to convert the following hexadecimal representation of 2’s complement binary numbers to decimal numbers I am unsure if I am doing it correctly or am I missing a step? a. xF0 b. x7FF c. ...
1
vote
2answers
21 views

Prove that the binary representation of a number n will use floor(lg(n)) + 1 bits.

I'm taking Computer Algorithms class and one of my problems is from Skiena's Algorithm Design Manual, 2-41: Prove that the binary representation of $n \ge 1$ has $\lfloor \lg n \rfloor +1$ bits ...
0
votes
3answers
271 views

How to convert an infinite binary fraction into a decimal fraction

I am asked to write the infinite binary fraction $0.(1011)$, where the $1011$ is the repeating part, as a $\frac pq$ fraction. What are the steps to do this? EDIT: If $0.(1011)$ was in base 10, I ...
0
votes
3answers
68 views

How many bits are needed to represent the integers 3^1000 and 2^1000?

I'm struggling with a math exercise here, and I would gladly appreciate some help. My problem is that I've encoutered some very big numbers such as $3^{1000}$ and $2^{1000}$ and I want to estimate ...
1
vote
0answers
26 views

Leibniz Binary Representation of Squares

Leibniz claims to have found patterns in the square numbers and their binary representations. I cannot see any patterns at all. Here are the first ten squares and their binary representations, can ...
3
votes
1answer
402 views

Finding the binary representation of the $n$th Fibonacci term

Objective: To find the binary representation ( or no. of 1's in binary representation) of nth term in Fibonacci sequence where n is of the order 10^6. My current approach: Find nth term (in decimal) ...
0
votes
0answers
10 views

Redundant Binary Representation

Is it possible to have a technique using Redundant Binary Representation so that repeated addition can be obtained with no carry propagation time?
-1
votes
2answers
26 views

One output for input of $n$-tuples using AND, OR, NOT

Let $B$ be set of $\{0,1\}$ and $B_n$ be the set of all strings of length $n$. How many functions can be constructed from $B_n$ to $B$ using logical operators like AND, OR, NOT. Help $\rightarrow$ ...
0
votes
0answers
49 views

Proving that number of codes with even weight is the same as number of codes with odd weight for a specific code book

Consider the $[n,n]$ code-book $C_0=\{0,1\}^n$ with $n$ being odd and the codes $c_i \in C_0=[c_1,c_2,...,c_{2^n}]$ being sorted in the ascending order of hamming weight (from $0$ to $n$). Now let's ...
2
votes
1answer
54 views

Computing $ 001001_2 - 110101_2$ (base $2$), and representing the result in signed magnitude format

I've been asked (for homework) to do $ 001001_2 - 110101_2$ (base 2) and to represent the answer in a signed magnitude format. EDIT: I'm specifically asked: Perform subtraction on the given ...
1
vote
1answer
40 views

Converting 16bit float to Base10 and vice versa

Hi! I have some difficulties understanding how I'm supposed to calculate this 16bit float to base10. This is something that is coming up on a test so I would be pleased to learn how this is supposed ...
2
votes
2answers
49 views

Linear Code (9,5): Is my Parity Check correct?

I have an exercise about designing parity checks for the Hamming (9,5) group code with minimum distance $3$. I use the following notation for the generator matrix: $$ ...
0
votes
0answers
12 views

similarities between two binary matrices

I want to measure the similarities between two matrices A and B. Both A and B contains the feature vectors of sounds and are in binary format. i want to see what is the similarities between these two ...
1
vote
1answer
31 views

Set of points of $[0,1)$ that have a unique binary expansion

Let $Y$ denote the set of points of $[0,1)$ that have a unique binary expansion. Then $Y$ has a countable complement so $m(Y)=1$, where $m$ is the Lebesgue measure. I have to confess that I do ...
0
votes
1answer
30 views

How to understand the perfect binary tree formula?

I got this paragraph by reading "python algorithm", in which it mentioned `some knights participate in an knockout match, how many mathes do they need to produce the winner. It's answer says: I'm ...
1
vote
1answer
33 views

Distance measures for binary data

I was wondering what are some good distance measures for binary data that have the following properties. I know that there are measures like the Jaccard index and the Dice Index, but they don't ...
0
votes
1answer
40 views

Absolute and relative error of a binary number?

Given is the following system $A:={ \pm 1.a_1 a_2 a_3 a_4 \cdot 2^e}$, $a_{i}\in \left \{ 0,1 \right \}$, $i\in \left \{ 1,2,3,4 \right \}$, $e\in \left \{ -8,\ldots,8 \right \}$. Find the absolute ...
0
votes
1answer
45 views

Mutiply Hexadecimal

I'm looking for a effective way to multiply Hexadecimal For instance, i have to find value of the quadruple of 0.FEDC 0.FEDC * 4 = ??? Normally, i will have to change the hex to binary : ...
0
votes
1answer
34 views

Turn recursive definition of a function into direct formula

I'm creating a tree diagram, and I'm trying to calculate the amount of white spaces I need at the left side. As you can already see this is done in a program. The formula goes like this: $$ ...
0
votes
1answer
46 views

How to minimize the square of $\sum b_i x_i$ where each $b_i$ can be either $0$ or $1$?

Would you please help me solve the following problem where $b_{ij}$ is my decision variable that must be determined and all other parameters are known. $$\min \left(\sum_{i=1}^n b_i x_i\right)^2$$ ...
0
votes
3answers
46 views

How to square a number in binary system?

If I want to find the square of 111 (written in binary) what do I do? I'm confused and keep on hearing different answers.
0
votes
1answer
43 views

Having problem with 10's complement subtraction

From what I've found, to find A - B using 10's complement; where A and B are decimals Let A = 215 , B = 155 Find 10's complement of B = (1000 - 155) = 845 Add 10’s complement of B to A If it ...
0
votes
1answer
34 views

Notation for show that a variable is binary?

Are there a "math letter" that represent the set of binary variable $\{0,1\}$? Like, when writing e.g., $a \in \mathbb{R}$, we know $a$ is real. I only know this notation $a \in \{0,1\}$, but is this ...
0
votes
1answer
34 views

Cubing a Minterm

I've just been going over some stuff I should actually already know - and I've come to a question that has really stumped me, (my math skill are lacking) and I don't actually know where to begin on ...
1
vote
4answers
54 views

How do I convert from binary base to decimal?

I have a homework problem and I don't understand it. Here is the problem: The base two number 11111(base 2) has the same digit in all places. The same number can be written in different bases. Find ...
1
vote
0answers
43 views

Recurrence relation for Binary String Question

I have a question which has been a little stumped. I'm pretty sure I know the answer, but don't know how to prove it to be true. Here it is: "Given an infinite length random binary string, what is ...
1
vote
4answers
531 views

How many bitstrings of length n contain an equal number of zeros and ones?

How many bitstrings of length n contain an equal number of zeros and ones? Progress Does $n!/2$ work as a solution since we know $n$ is even? For example, 000111 rearranged, $6!/2$? What ...
0
votes
1answer
20 views

Finding the leading exponent of a binary number

Let's say that the binary representation of a number $k$ is $2^{X_n} + 2^{X_{n-1}} + \dots + 2^{X_0}$ with each term in this polynomial having a $1$ or $0$ multiplied to it (I just haven't showed them ...
1
vote
1answer
75 views

Find the pair of values $a[i]$, $a[j]$ such that $a[i]\,\&\,a[j]$ is maximum

Given a list of positive integers, find the largest possible value of $a[i]$ $\&$ $a[j]$, where $i$, $j$ are indices of the list. $ i\ne j $, $a[i]\,\&\,a[j]$ is bitwise AND of $a[i]$ and ...