Functional Equations With Multiple Gamma Factors and the Average Order of Arithmetical Functions