Thanks, w2aew, for the comment. This was missing in the web sites I looked to.
It is also missing on your video, which is nevertheless very interesting.
So I have added a Z impedance in parallel to the R1 resistors.
Now the ratio of the voltages is (using the formula given above)
Vo/Vi = R1*Z/(R1*R2 +(R1+R2)*Z) = 1/k
So exactly what is needed.
This means that the impedance of the attenuator needs to be adjusted to the impedance of the
source and of the receiver.
Thanks again.