Text this: Phase diagram and extreme Gibbs measures of the Ising model on a Cayley tree in the presence of competing binary and ternary interactions