Find the greatest n that always divides the product
Source: Lusophon Mathematical Olympiad 2024 Day 1 Problem 2
July 26, 2024
number theory
Problem Statement
For each set of five integers S={a1,a2,a3,a4,a5}, let PS be the product of all differences between two of the elements, namely PS=(a5−a1)(a4−a1)(a3−a1)(a2−a1)(a5−a2)(a4−a2)(a3−a2)(a5−a3)(a4−a3)(a5−a4)Determine the greatest integer n such that given any set S of five integers, n divides PS.