def test_rsolve_bulk():
 funcs = [n, (n + 1), (n ** 2), (n ** 3), (n ** 4), (n + (n ** 2)), (((((27 * n) + (52 * (n ** 2))) - (3 * (n ** 3))) + (12 * (n ** 4))) - (52 * (n ** 5)))]
 coeffs = [[(-2), 1], [(-2), (-1), 1], [(-1), 1, 1, (-1), 1], [(- n), 1], [(((n ** 2) - n) + 12), 1]]
 for p in funcs:
  for c in coeffs:
   q = recurrence_term(c, p)
   if p.is_polynomial(n):
    assert (rsolve_poly(c, q, n) == p)

def test_rsolve_bulk ( ) : funcs = [ n , ( n + 1 ) , ( n ** 2 ) , ( n ** 3 ) , ( n ** 4 ) , ( n + ( n ** 2 ) ) , ( ( ( ( ( 27 * n ) + ( 52 * ( n ** 2 ) ) ) - ( 3 * ( n ** 3 ) ) ) + ( 12 * ( n ** 4 ) ) ) - ( 52 * ( n ** 5 ) ) ) ] coeffs = [ [ ( - 2 ) , 1 ] , [ ( - 2 ) , ( - 1 ) , 1 ] , [ ( - 1 ) , 1 , 1 , ( - 1 ) , 1 ] , [ ( - n ) , 1 ] , [ ( ( ( n ** 2 ) - n ) + 12 ) , 1 ] ] for p in funcs : for c in coeffs : q = recurrence_term ( c , p ) if p . is_polynomial ( n ) : assert ( rsolve_poly ( c , q , n ) == p )
some bulk-generated tests .