On the constant in the Mertens product for arithmetic progressions. I. Identities