Number of terms in Geometric Series with given conditions
A geometric progression is a sequence of integers b1, b2, b3, ..., where for each i > 1, the respective term satisfies the condition bi = bi-1 * q, where q is called the common ratio of the progression.Given geometric progression b defined by two integers b1 and q, and m "bad" integers a1, a2, .., am, and an integer l, write all progression term