I'm with Dr Evil and ATCO1962 on this - you just have to memorise them. However, you do end up just knowing them without consciously thinking about it. It a case of pattern recognition.
The beauty of using index cards is that you can shuffle them (preventing you only "knowing" them when they're in the same order every time) and you can take them just about anywhere.