- Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients.
- In this example, the polynimial is 1*x^3+0*x^2+0*x-1 or (x^3-1).
- Suppose there is another vector w like [1 -1].
- In this example, the second polynomial is (x-1).
- If x is any integer then the polynomial represented by (v/w) is integer?
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers60
Suggested Problems
-
Read a column of numbers and interpolate missing data
2350 Solvers
-
2524 Solvers
-
404 Solvers
-
Sum of first n terms of a harmonic progression
497 Solvers
-
Number of 1s in a binary string
10974 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This problem needs to have its description fixed. It should be "Is the polynomial represented by (v/w) an integer for any integer x except for the roots of w? if the integer x is a root of w, we will have a NaN, which is the case for the test case #1 and the value x=1 for instance.