ta có:\(\dfrac{a+b+c-d}{d}=\dfrac{b+c+d-a}{a}=\dfrac{a+d+a-b}{b}=\dfrac{d+a+b-c}{c}\)\(=>\dfrac{a+b+c-d}{d}+2=\dfrac{b+c+d-a}{a}+2=\dfrac{c+d+a-b}{b}+2=\dfrac{d+a+b-c}{c}+2\)\(=>\dfrac{a+b+c+d}{d}=\dfrac{b+c+d+a}{a}=\dfrac{c+d+a+b}{b}=\dfrac{d+a+b+c}{c}\)Nếu a+b+c+d=0=>a+b=-(c+d)
b+c=-(a+d)
c+d=-(a+b)
a+d=-(b+c)
thay vào bt M ta có:\(\dfrac{-\left(c+d\right)}{c+d}=\dfrac{-\left(d+a\right)}{d+a}=\dfrac{-\left(a+b\right)}{a+b}=\dfrac{-\left(b+c\right)}{b+c}\)=>-1-1-1-1=-4
Nếu a+b+c+d≠0
=>a=b=c=d thì lúc đó M=1+1+1+1=4
Vậy M=4 hoặc M=-4