On the product of the terms of a finite arithmetic progression