n=5

[math]r\left(1-d\right)=\left(1+d\right)\sqrt{\left(\left(1-r+d\right)\left(1-r-d\right)\right)}+\left(1+d\right)\sqrt{\left(1-r-d\right)2}[/math]

Information: n=5