def dup_multi_deflate(polys, K):
 G = 0
 for p in polys:
  if (dup_degree(p) <= 0):
   return (1, polys)
  g = 0
  for i in range(len(p)):
   if (not p[((- i) - 1)]):
    continue
   g = igcd(g, i)
   if (g == 1):
    return (1, polys)
  G = igcd(G, g)
 return (G, tuple([p[::G] for p in polys]))

def dup_multi_deflate ( polys , K ) : G = 0 for p in polys : if ( dup_degree ( p ) <= 0 ) : return ( 1 , polys ) g = 0 for i in range ( len ( p ) ) : if ( not p [ ( ( - i ) - 1 ) ] ) : continue g = igcd ( g , i ) if ( g == 1 ) : return ( 1 , polys ) G = igcd ( G , g ) return ( G , tuple ( [ p [ : : G ] for p in polys ] ) )
map x**m to y in a set of polynomials in k[x] .