Counting up from one, it's the first number that contains a "G"
I also find some other formula with 3 nested function but its just 
one with... [DOC] [TLE] Counting and Probability - Cengage Learning [PAR] first two letters are chosen, 24 letters are left to choose from for the third stage.