A small learning experiment. How do I attenuate a 2 Vpp sine wave by 10 dB?

First let's calculate what the attenuated voltage should be:

img

Now for the circuit a simple voltage divider should suffice:

img

But what should the values for the resistors be? Let's use 1k for R1:

img

The simulation shows the value is correct!

img