The Binary Root

Algebra Level 5

A quadratic equation

x 2 p x + q = 0 x^2-px+q=0

is called binary-quadratic if it satisfy the following conditions:

  • All digits of the non-negative integers p p and q q are either 0 0 or 1 1

  • All digits of the roots are either 0 0 or 1 1

How many binary-quadratic equations are there such that both roots are smaller than 1 0 4 10^4 .


The answer is 39.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Christopher Boo
Aug 16, 2014

We can use polynomial to express binary number. For example,

x 4 + x 2 + x + 1 10111 x^4+x^2+x+1 \implies 10111

x 3 + x 1010 x^3+x \implies 1010


Part I (sum of roots)

Since α , β \alpha,\beta are both smaller than 1 0 4 10^4 , they can have at most 4 digits . Given that the sum of two roots is a binary number, both polynomials cannot have two or more same elements from the set

{ x 3 , x 2 , x , 1 } \left\{x^3,x^2,x,1\right\}

We have 5 cases to deal, but the pattern is obvious. For case 1, we choose nothing from the set for one of the root α \alpha , then we will have 2 4 2^4 numbers of β \beta . For case 2, we choose 1 element from the set for α \alpha , then we left 2 3 2^3 numbers for β \beta . This pattern is the same for the other cases, add it all together we get

( 4 0 ) × 2 4 + ( 4 1 ) × 2 3 + ( 4 2 ) × 2 2 + ( 4 3 ) × 2 1 + ( 4 4 ) × 2 0 = 81 {4 \choose 0} \times 2^4 + {4 \choose 1} \times 2^3+{4 \choose 2} \times 2^2+{4 \choose 3} \times 2^1+{4 \choose 4} \times 2^0 = 81

Most of these combinations are double counted ( α , β ) = ( β , α ) (\alpha,\beta)=(\beta,\alpha) , except for when α = β \alpha = \beta , which is the only combination, ( 0 , 0 ) (0,0) .

Hence, the number of combinations for p p is 40 + 1 = 41 40+1=41 .

Part II (product of roots)

Given that the product of two binary roots (polynomials) is also a binary number, which implies that we cannot have two sets with any combination of elements that will have the same power after the production.

Obviously, we only have the sum of power 3 + 0 = 1 + 2 3+0=1+2 . (We don't have to worry about 3 + 1 = 2 + 2 3+1=2+2 ) since these will not even made it into Part I )

Hence, only 2 combinations we should exclude, which is

( x 3 + x ) ( x 2 + 1 ) (x^3+x)(x^2+1) and ( x 3 + x 2 ) ( x + 1 ) (x^3+x^2)(x+1)

In conclusion, we have 41 2 = 39 41-2=39 combinations of p , q p,q .

[Thanks for reading, for any questions, please comment below]

@John Ashley Capellan Your case analysis missed out solutions where q = 0 q=0 . This is allowed in the question. There are 16 cases then, which gives us 23 + 16 = 39 23 + 16 = 39 .

Calvin Lin Staff - 6 years, 10 months ago

Log in to reply

Actually it was my fault. I wrote positive integers p , q p,q and now I changed it to non-negative integers.

Christopher Boo - 6 years, 10 months ago

Log in to reply

Ah I see. Thanks for explaining.

@John Ashley Capellan To those who previously answered 23, I've marked them correct. Sorry for the confusion.

Calvin Lin Staff - 6 years, 10 months ago

Log in to reply

@Calvin Lin Thanks for correcting.... At first, I really read that it is a positive integer....

John Ashley Capellan - 6 years, 10 months ago

I changed the term to "binary-quadratic" instead.

A biquadratic equation is used to describe either a quartic polynomial, or a quartic polynomial with no odd degree terms.

Calvin Lin Staff - 6 years, 10 months ago

great try but may be there is a mistake

Riaz Ahmad Baboojee - 6 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...