A and AN are both indefinite articles and they have the same meaning, The rule is really very simple. It depends on the sound at the beginning of the next word. It