Trying to synthesize a Sine wave with a digital ring counter. I picked these resistor values somewhat at random and was surprised to find they work pretty well. I used 2 root 2, 2, root 2 and 1 in case you couldn't tell. I know there has to be a way to calculate exatly what they should be.. Anyone know how?