A polynomial of the form:
, for
, is said to be natural factorable if it can be factored into products of first degree binomials:
, where,
and
are all natural numbers (i.e. integers that are
).
Given an integer a, write a function that counts the number of all possible natural factorable polynomials that can be formed, wherein
.
For example, when
, the are 7 possible natural factorable polynomials, namely:
Therefore the function output should be 7.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers10
Suggested Problems
-
Rosenbrock's Banana Function and its derivatives
168 Solvers
-
Matrix indexing with two vectors of indices
784 Solvers
-
Area of an equilateral triangle
7018 Solvers
-
Sum of odd numbers in a matrix
624 Solvers
-
Highly divisible triangular number (inspired by Project Euler 12)
172 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!