A quadratic equation
is called binary-quadratic if it satisfy the following conditions:
All digits of the non-negative integers and are either or
All digits of the roots are either or
How many binary-quadratic equations are there such that both roots are smaller than .
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.
We can use polynomial to express binary number. For example,
x 4 + x 2 + x + 1 ⟹ 1 0 1 1 1
x 3 + x ⟹ 1 0 1 0
Part I (sum of roots)
Since α , β are both smaller than 1 0 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 }
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 α , then we will have 2 4 numbers of β . For case 2, we choose 1 element from the set for α , then we left 2 3 numbers for β . This pattern is the same for the other cases, add it all together we get
( 0 4 ) × 2 4 + ( 1 4 ) × 2 3 + ( 2 4 ) × 2 2 + ( 3 4 ) × 2 1 + ( 4 4 ) × 2 0 = 8 1
Most of these combinations are double counted ( α , β ) = ( β , α ) , except for when α = β , which is the only combination, ( 0 , 0 ) .
Hence, the number of combinations for p is 4 0 + 1 = 4 1 .
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 . (We don't have to worry about 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 ) and ( x 3 + x 2 ) ( x + 1 )
In conclusion, we have 4 1 − 2 = 3 9 combinations of p , q .
[Thanks for reading, for any questions, please comment below]