If p and q are integers such that
x 2 − x − 1 is a factor of p x 1 7 + q x 1 6 + 1 ,
find p .
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.
Eleganttt..
The roots of x 2 − x − 1 = 0 are α = 2 1 + 5 and β = 2 1 − 5 .
These roots are also the roots of p x 1 7 + q x 1 6 + 1 = 0 .
So p α 1 7 + q α 1 6 = − 1 _ _ _ _ _ _ ( 1 ) ,
and p β 1 7 + q β 1 6 = − 1 _ _ _ _ _ _ ( 2 ) .
By multiplying ( 1 ) by β 1 6 and using the fact α β = − 1 ,
p α + q = − β 1 6 .
By multiplying ( 2 ) by α 1 6 and using the fact α β = − 1 ,
p β + q = − α 1 6 .
By subtracting,
p ( α − β ) = α 1 6 − β 1 6 .
So p = α − β α 1 6 − β 1 6 .
Note that this is the Binet's formula for the 16th Fibonacci number.
Finding the 16th Fibonacci number: 1 , 1 , 2 , 3 , 5 , 8 , 1 3 , 2 1 , 3 4 , 5 5 , 8 9 , 1 4 4 , 2 3 3 , 3 7 7 , 6 1 0 , 9 8 7 , . . . .
Therefore, p = F 1 6 = 9 8 7 .
Alternative Solution:
p = α − β α 1 6 − β 1 6 = ( α 8 + β 8 ) ( α 4 + β 4 ) ( α 2 + β 2 ) ( α + β ) .
Since
α + β = 1 ,
α 2 + β 2 = ( α + β ) 2 − 2 α β = 1 + 2 = 3 ,
α 4 + β 4 = ( α 2 + β 2 ) 2 − 2 α 2 β 2 = 9 − 2 = 7 ,
α 8 + β 8 = ( α 4 + β 4 ) 2 − 2 α 4 β 4 = 4 9 − 2 = 4 7 ,
it follows that p = 4 7 × 7 × 3 × 1 = 9 8 7 .
Nice solution!
Let f ( x ) = x 2 − x − 1 , g ( x ) = p x 1 7 + q x 1 6 + 1 and the roots of f ( x ) be φ . If f ( x ) is a factor of g ( x ) , then φ are also roots of g ( x ) or g ( φ ) = 0 .
f ( φ ) = φ 2 − φ − 1 = 0 ⇒ φ 2 = φ + 1
⇒ φ 4 = ( φ + 1 ) 2 = φ 2 + 2 φ + 1 = 3 φ + 2
⇒ φ 8 = ( 3 φ + 2 ) 2 = 9 φ 2 + 1 2 φ + 4 = 2 1 φ + 1 3
⇒ φ 1 6 = ( 2 1 φ + 1 3 ) 2 = 4 4 1 φ 2 + 5 4 6 φ + 1 6 9 = 9 8 7 φ + 6 1 0
⇒ φ 1 7 = φ ( 9 8 7 φ + 6 1 0 ) = 9 8 7 ( φ + 1 ) + 6 1 0 φ = 1 5 9 7 φ + 9 8 7
Therefore, g ( φ ) = p φ 1 7 + q φ 1 6 + 1 = p ( 1 5 9 7 φ + 9 8 7 ) + q ( 9 8 7 φ + 6 1 0 ) + 1 = ( 1 5 9 7 p + 9 8 7 q ) φ + 9 8 7 p + 6 1 0 q + 1 = 0
⇒ { 1 5 9 7 p + 9 8 7 q = 0 9 8 7 p + 6 1 0 q = − 1 ⇒ { 6 1 0 ( 1 5 9 7 p + 9 8 7 q ) = 0 9 8 7 ( 9 8 7 p + 6 1 0 q ) = − 9 8 7
⇒ { 9 7 4 1 7 0 p + 6 0 2 0 7 0 q = 0 9 7 4 1 6 9 p + 6 0 2 0 7 0 q = − 9 8 7 ⇒ p = 9 8 7
Yes, φ = 2 1 ± 5 is the golden ratio, and φ n = F ( n ) φ + F ( n − 1 ) , where F ( n ) is the n t h Fibonaci number.
Chew-Seong Cheong .I first got equation 1 5 9 7 p + 9 8 7 q = 0 by using formula f n = 5 ( ϕ n − τ n ) .Now using GCD and Extended Euclidean Algorithm I got more generalized form of 1 5 9 7 + 9 8 7 n − 9 8 7 × 1 5 9 7 n = 0 smallest of which we can take is when n = 1 and p = 9 8 7 .
g ( x ) = x 2 − x − 1 = 0 ⇒ x = 2 1 ± 5 let φ = 2 1 + 5 , ψ = 2 1 − 5 f ( x ) = p x 1 7 + q x 1 6 + 1 Since g ( x ) is factor of f ( x ) , so φ and ψ are also the roots of f ( x ) f ( φ ) = p φ 1 7 + q φ 1 6 + 1 = 0 f ( ψ ) = p ψ 1 7 + q ψ 1 6 + 1 = 0 The above equations are linear equations in terms of p and q . so we use cross-multiplication to solve them. ⇒ φ 1 6 − ψ 1 6 p = φ 1 7 ψ 1 6 − φ 1 6 ψ 1 7 1 ⇒ p = φ 1 6 ψ 1 6 ( φ − ψ ) φ 1 6 − ψ 1 6 We know that ψ 1 6 φ 1 6 = ( − 1 ) 1 6 = 1 and also that F n = φ − ψ φ n − ψ n and F 1 6 = 9 8 7 Substituting these values, we get p = 9 8 7
try reverse synthetic division :D
Tried but failed
When I had to start writing code to manage it (anything more than 3-4 lines is not acceptable in my opinion) I realized there was a better way to do this.
Problem Loading...
Note Loading...
Set Loading...
Since x 2 − x − 1 is a factor of the first polynomial p x 1 7 + q x 1 6 + 1 it means that the roots of the first equation are also the roots of the second polynomial.We can solve the first equation by quadratic formula to find :
x 1 = ϕ and x 2 = 1 − ϕ . where ϕ is the Golden Ratio.
But since our second polynomial contains high degrees it would be better to transform the second root into ϕ − 1 .Therefore,
x 1 = ϕ and x 2 = ϕ − 1 .
Now,after substituting x we get the two equations:
p ϕ 1 7 + q ϕ 1 6 = − 1
ϕ 1 6 q − ϕ 1 7 p = − 1
Multiplying the second equation by ϕ 3 2 then from the first unchanged equation substract the second one to get:
p ( ϕ 1 7 + ϕ 1 5 ) = ϕ 3 2 − 1 . And finally:
p = ϕ 1 7 + ϕ 1 5 ϕ 3 2 − 1 .
Substitute ϕ = 2 1 + 5 to get p = 9 8 7 .One can also solve this ,i think using Fibonacci numbers because the answer is equal to to F 1 6 where F n denotes the n -th fibonacci number.