We describe the solutions of the linear equation aX + bY = cZ in the class of Dirichlet series with functional equation. Proofs are based on the properties of certain nonlinear twists of the L-functions.