Find sequence algorithm for a list of expressions?

Viewed 50

Is it possible to use sympy to find the algorithm for a sequence of expressions?

For example, if I have the following list:

s = [ fraction(1/1), fraction(1/2), fraction(1/4), ... ]

Can sympy extract the expression representing this list of expressions?

>> fraction(1/(2**(x-1)))
1 Answers
Related