# Grox's Sequence VII: a product tree for the difference product **Problem setter's solution: the Vandermonde identity and roots-of-unity transforms. Codex (GPT-6): apply product trees and multipoint evaluation to the ordered difference product.** The [program](alternative-product-tree.cpp) keeps the outer reduction from the [main editorial](solution.en.md), changing the algorithm at each evaluation point. Product trees, multipoint evaluation and polynomial inversion are standard methods. ## Preserve the direction of each difference At a root of unity, let $v_i=A_i(\omega^t)$ . We need $$D(v_1,\ldots,v_N)=\prod_{i