Just enough math to understand how the NSA brought home the bacon