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

learn more… | top users | synonyms

0
votes
2answers
51 views

Probability of sum over a window of binary vector

I have a vector of one's and zero's of length n with a probability p of observing a one and 1-p of observing a zero. I slide a (overlapping) window of size $k$ across this vector and take the sum ...
-2
votes
1answer
49 views

Does Benford's Law Apply in Base 2 [closed]

Does Benford's Law apply in base 2? Wiki states: For b = 2 (the binary number system), Benford's Law is true but trivial. Meaning? Secondly, can it be found that there are generally more Zeros or ...
0
votes
1answer
35 views

My Proof for the Cardinality of a Particular Binary Distribution

my question reads as follows: I have constructed a proof and am concerned about 2 things: 1) The validity of my proof. 2) The construction of my proof. I am asking for someone to read through ...
0
votes
0answers
24 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 ...
1
vote
1answer
55 views

How many ways are there to arrange 1's and 0's with no two 1's in a row? [duplicate]

Given n spaces, how many ways are there to fill up the spaces with 1's and 0's such that no two 1's are together. For example, let's say n = 3 (_ _ _). There are 5 ways to fill up the spaces such ...
1
vote
1answer
31 views

Decimal to Binary

I am struggling to understand Decimal to Binary using the following method, given on the second last page of http://www.ling.ohio-state.edu/~scott/teaching/2008/spring/384/handouts/decimal-binary.pdf. ...
0
votes
1answer
23 views

Show that the following holds;

Let $h(p) = -p \log p-(1-p)\log (1-p)$ denote the binary entropy of a Bernoulli distribution when the probability of observing a zero is $p$, where $\log$ denotes the logarithm to base 2. Show, using ...
-2
votes
1answer
217 views

Alien Abduction Brain Teaser [duplicate]

Okay Here is the brain teaser. 10 people have been abducted by aliens because they view them as being representative of the human race. They are going to test them to see if the human race is worthy ...
1
vote
0answers
60 views

Why doesn't this base 10 number x mod 2^y work for converting base 10 to binary

Okay I tried to convert 1 million to binary by dividing by a power of 2 and taking the remainder and dividing that by a power of 2 and so on and I got this: 1111010000100100000 Google says 1 million ...
0
votes
0answers
40 views

What is the result of the calculation: $8.375 - 0.375-0.875$?

Given the base $\beta=2$ (binary) and $t=4$ digits to represent the number in computer with hidden bit representation and symmetric rounding, what is the result of the calculation in floating point ...
0
votes
2answers
34 views

Convert from binary (with floating point) to decimal?

I have to convert the number (111011,01) in binary (2) to decimal (10). I looked up many guides on YouTube but none really explained how it's done, or it's very hard to hear. I would appreciate if ...
0
votes
1answer
31 views

What makes a floating point number finite?

We started studying about the binary floating point system, and talked mainly about the limitations when trying to represent fractions on computer systems, and how mostly what we get when manipulating ...
0
votes
3answers
33 views

How to borrow from zeroes in binary subtraction (no complements)b?

I know you can use complements to subtract, but I want to subtract these two binary numbers without that. I am unsure of how to borrow numbers from zero, check it out: 1000000 -101100 How do I ...
1
vote
1answer
60 views

Find a decomposition and then an equation for the generating function for the class of rooted trees where each node has 0, 1, or 2 children.

Find a decomposition and then an equation for the generating function for the class of rooted trees where each node has 0, 1, or 2 children. how do you approach this problem?
0
votes
1answer
22 views

Partioning Mystery

Who has the wisdom to answer the following: 9 distinct marbles distrubted into 4 distinct bags with each bag receiving at least 1 marble,how many ways can this be done? Thankyou for contributing! ...
0
votes
1answer
33 views

What's the proper way to subtract a negative number with two's complement?

Title says all. Is it just ordinary addition? Because that seems like it's too simple.
0
votes
0answers
33 views

Biased form with hidden bit

A computer stores a number of 16 bits word using floating-point arrangement. Given that the first bit is reserved for the sign and followed by 6 bits for the exponent using biased form. The remaining ...
0
votes
1answer
71 views

Time efficiency of brute force algorithm as a function of number of bits?

This is homework help so advising how to solve such a problem is appreciated. The question reads as follows: What is the time efficiency of the brute-force algorithm for computing $a^n$ as a ...
0
votes
1answer
43 views

Data Representation Question

A computer stores a number of $16$ bits word using floating-point arrangement. Given that the first bit is reserved for the sign and followed by $6$ bits for the exponent using biased form. The ...
0
votes
2answers
105 views

Binary Code Decimal (BCD)

I need help with the following question, my try is at the bottom: Question : Using Binary Code Decimal 8-4-2-1 representation, calculate 6789 + 7156 - 365 My Answer : 1101010000101 + 1101111110100 = ...
1
vote
1answer
75 views

The maximum number of digits in binary multiplication

Given 2 binary numbers of n digits. (n can be from 1 to something large) What is the maximum number of digits of their product? I think it's 1 in 1-digit*1-digit, and 2n otherwise. But I want some ...
1
vote
1answer
56 views

Base change system

the people in aldeeran planet use a base six system. a]show how the aldeeran people represent each of the following: i) 291.5 (base 10) ii) 1010111 (base 2) iii) 71.6 (base 8) iv) 10A.4 (base 16) ...
1
vote
0answers
83 views

conversion of number from base 10 to base 16

I have trouble finding an example of a conversion of a number from base 10 to base 16, where there is a loss of significant digits when using the Euclidean algorithm due to division by large numbers, ...
1
vote
2answers
89 views

How do I calculate the binary form of a polynomial?

The 4 bytes used in CDROM sectors is just a usual 32 bit CRC. It uses the polynomial P(x) = (x^16 + x^15 + x^2 + 1).(x^16 + x^2 + x + 1) which expands to ...
0
votes
1answer
22 views

Continuous and binary variable question

For $y_1$ and $y_2$ as continuous variables how can this statement be reformed in binary and continuous variables with linear constraints Either $|y_1 - y_2| = 2$ or $|y_1 - y_2| = 4$
1
vote
1answer
71 views

How convert 1/2 to binary?

How convert 1/2 to binary? isn't it 0.1111 $1/2$ result $0$ $(1/2)*2=1$ result $0.1$ $2*2>1$ result $0.11 $ etc.
1
vote
1answer
54 views

Combinations or Permutations of bits

I am a computer science major and was explaining to someone how a computer uses bits to represent numbers. If you have 1 bit, you can have 0 or 1. With 2 bits, you can have 00, 01, 10, 11, or 0, 1, ...
0
votes
2answers
61 views

Mathematically get $n$th bit from integer

Most programming languages have functions for getting bits but I need to do it on a calculator so I need to understand how to do it mathematically. Basically I need a formula for getting the $n$th bit ...
1
vote
1answer
324 views

Formula for binary sequences of length m with no n consecutive 1s?

Formula for binary sequences of length $m$ with no $n$ consecutive $1$s? I know The number of binary strings of length $m$ without consecutive $1$s is the Fibonacci number $F_{m+2}$. But how about ...
0
votes
1answer
60 views

how do I assign -12 in base 10 to biased 32 in binary?

Not really sure how to approach this one. I understand how to convert decimal to hex and all that, but what is biased 32?
0
votes
1answer
57 views

Expressing as 1's complement

I have the problem: Express ( -43) as a word-length 1’s complement number 43 is in decimal. I understand how to convert to Hexadecimal and take the 2's ...
0
votes
1answer
193 views

Count number of binary relations between sets

He, I have following questions: We have sets $A$ and $B$, $\left | A \right | = m,\left | B \right | = n$. 1) How many binary relations are there from $A$ to $B$? 2) How many binary relations are ...
1
vote
0answers
676 views

Calculating minimum hamming distance of a code

We use hamming code of (7,4,3); Given 4 bits of information, we'll add 3 bits of parity, and one more parity bit for the 7-bits code. Given $x_3,x_5,x_6,x_7$ $x_1 = (x_3+x_5+x_7) \mod 2$ $x_2 = ...
1
vote
0answers
26 views

How to show that the spectral radius of a binary tree approaches exp(1) as the N tends to infinity?

How can I prove mathematically that the spectral radius of a binary tree approaches e as the number of nodes tends to infinity? I mean it is true that the increase in nodes number is exponential but ...
4
votes
1answer
2k views

How many bits needed to store a number

How many bits needed to store a number $55^{2002}$ ? My answer is $2002\;\log_2(55)$, is it correct?
3
votes
0answers
61 views

Number of 'unique' one bit binary functions with N-bit inputs

Consider the set of binary functions that takes an N-bit input -> 1 bit output. There are 2^(2^N) elements in this set. Now potentially reduce this set by restricting to only considering functions ...
0
votes
2answers
327 views

creating a Binary tree based on a prefix expression

I want to find the value of a the prefix expression -/+8,10,2*3,2 and build its binary tree I am trying to learn this for a math course, but have absolutely no clue ...
2
votes
1answer
42 views

Powers of 10 in binary expansion

I noticed an interesting pattern the other day. Let's take a look at the powers of 10 in binary: $10^0$ = 1 = 1 b $10^1$ = 10 = 10 10 b $10^2$ = 100 = 1100 100 b $10^3$ = 1000 = 111110 1000 b ...
1
vote
2answers
61 views

Binary concatenation

In decimal, I have the numbers 4 and 5 for example. I want to concatenate them into the number 45, but then in binary. In decimal, it's just a matter of sticking the numbers together, but I need to do ...
0
votes
1answer
55 views

Conditions for a decimal to be convertible to binary

All natural numbers (Base 10) can be converted to binary. No problem. But what about fractional numbers? All cannot be converted (finite expansion). Example: $0.625$ can be converted but $0.11231$ ...
1
vote
3answers
118 views

How to fast convert from Octal to Hexadecimal

There has been a similar question before: How to convert a hexadecimal number to an octal number? But, in my case I need an Algorithm to directly convert a number from Octal to Hexadecimal and back ...
0
votes
1answer
28 views

Binary to Hexadecimal number

I know how to convert 0101 | 0111 in which the 0101 gives me 5, and ...
3
votes
1answer
254 views

On a scale of 1 to 10, how likely is it that this question is using binary? [closed]

I just read this interesting xkcd strip: At first I thought it was funny, but as I got to ruminate a little over it, I was surprised to be unable to find an answer. As Karolis Juodelė pointed out, ...
-1
votes
1answer
323 views

Inverse of binary matrix

I have tried creating an inverse of a binary matrix using the identity matrix method. Have an identity matrix alongside the square matrix and perform all the operations to convert the square matrix to ...
0
votes
3answers
58 views

converting to octal, hexadecimal and binary

Revising for an exam - could someone explain to me how you can convert an ordinary numbers to octal, hexadecimal and binary would be appreciated
4
votes
1answer
103 views

XOR of Three Integers

How would you prove the following: Given three non-negative integers $a, b, c$; if $a \oplus b \oplus c = 0$ then $(a - k) \oplus (b - k) \oplus (c - k) > 0$ for any $0 < k \leq min(a, b, c)$ ? ...
2
votes
2answers
433 views

Binary Logistic Regression Model Processing

Thanks for showing interest and wanting to help out. My aim is to develop a model that - as accurately as possible - predicts how entities in a population will either cooperate or defect, as a % of ...
2
votes
1answer
71 views

Recurrence relations - simple questions, please verify my answers.

I'm posting this question because this is new material for me and I am unsure of my answers and have no one to consult with. I solved the first three and would appreciate feedback. I need help solving ...
0
votes
1answer
65 views

Compressing a short list of very large numbers?

Suppose that we are dealing with integers drawn from a random uniform distribution, on the range $[1 , 2^{30}]$. Is it possible to effectively compress a short list of random numbers, say $2^4$ ...
28
votes
10answers
4k views

In plain English, why does conversion from hexadecimal to binary work so cleanly?

Why does the trick of taking the binary representation of each digit and simply concatenating them work? e.g. 0x4E == 0100 ...