MathLabs

Problem 3

Let kk be a positive integer and let SS be a finite set of odd prime numbers. Prove that there is at most one way (up to rotation and reflection) to place the elements of SS around a circle such that the product of any two neighbours is of the form x2+x+kx^2+x+k for some positive integer xx.
Step 1 of 6: Call a number good and allow x≥0x\ge0
In plain words

The substitution x↦−1−xx\mapsto-1-x leaves x2+x+kx^2+x+k unchanged, so restricting to positive xx or nonnegative xx describes the same set of values.

n good  ⟺  n=x2+x+k, x∈Z≥0n\ \text{good}\iff n=x^2+x+k,\ x\in\mathbb{Z}_{\ge0}
Detailed analysis

Since (−1−x)2+(−1−x)+k=x2+x+k(-1-x)^2+(-1-x)+k=x^2+x+k, calling nn good when n=x2+x+kn=x^2+x+k for some nonnegative integer xx describes exactly the same numbers as requiring a positive integer xx; we use the nonnegative convention for convenience.