Just so you can do the math for bitshifting... When you bitshift to the left, you're multiplying by powers of 2. In other words, a shift to the left of 3 would be 2^3. It's the opposite for going to the right (but because I never found myself shifting to the right when making programs, I don't recall the exact way to calculate it).
But the easiest way to know it is to simply shift the binary values to the right or left, depending on which one you're doing. The name in itself explains exactly what's happening.
And cool finding. You have much more time on your hands than I, lol