In this work, the ternary alloy (TA) of the form [Formula: see text] with spin-[Formula: see text], spin-2 and spin-[Formula: see text], respectively, is studied on the Bethe lattice in terms of exact recursion relations in the standard random approach. The bilinear interaction parameter [Formula: see text] is assumed to be ferromagnetic between the nearest-neighbor spins with spin-[Formula: see text] and spin-2, while [Formula: see text] is taken to be antiferromagnetic between spin-[Formula: see text] and spin-[Formula: see text]. The possible phase diagrams are obtained from the thermal analysis of the order parameters for the given coordination numbers z = 3,[Formula: see text]4,[Formula: see text]5 and 6. This analysis has also revealed that the model gives both second- and first-order phase transitions in addition to the compensation temperatures.