Zin desired input impedance in Ω
Zout desired output impedance in Ω
a attenuation in dB
L = 10 a/10 (the loss)
A = (L + 1)/(L − 1)
Tee attenuator
R2 = 2*√ (L * Zin * Zout )/(L − 1)
R1 = Zin * A − R2
R3 = Zout * A − R2