Let k be an integer ≥ 1 and let l be an integer such that 1 ≤ l ≤ k, (l,k) = 1. An asymptotic formula (valid for large x) is obtained for the product ∏ p≤x,p≡l(modk)1- 1 p, generalizing a familiar result of Mertens.