Problem

Source: Balkan MO Shortlist 2013 A4 BMO

Tags: Integer Polynomial, polynomial, algebra



Find all positive integers $n$ such that there exist non-constant polynomials with integer coefficients $f_1(x),...,f_n(x)$ (not necessarily distinct) and $g(x)$ such that $$1 + \prod_{k=1}^{n}\left(f^2_k(x)-1\right)=(x^2+2013)^2g^2(x)$$