We characterize all pairs (β,n),(β′,m) such that the alternate (β,n) and (β′,m)-transformations K(β,n) and K(β′,m) have the same absolutely continuous invariant measure, where K(β,n)(i,x)=(i+1mod2,Ti(x)) with i∈{0,1}, T0(x)=Tβ(x)=βxmod1, T1(x)=Tn(x)=nxmod1 with β>1 real and n≥2 an integer.