code: def dup_andre(n, K):
      """Low-level implementation of Andre polynomials."""
      p = [K.one]
      for i in range(1, n + 1):
          p = dup_integrate(dup_mul_ground(p, K(i), K), 1, K)
          if i % 2 == 0:
              p = dup_sub_ground(p, dup_eval(p, K.one, K), K)
      return p
  
file_path: sympy/sympy/polys/appellseqs.py
imports: from sympy.polys.densearith import dup_mul_ground, dup_sub_ground, dup_quo_ground
  from sympy.polys.densetools import dup_eval, dup_integrate
  from sympy.polys.domains import ZZ, QQ
  from sympy.polys.polytools import named_poly
  from sympy.utilities import public
label_desc: Use image node_id 9 for calling a global function with example usage: dup_andre(n, K) and returns: p