# Determining the line number of a combination from a sorted text file

Uppercase letters $$(A - Z)$$ and numbers $$(0 - 9)$$ are used to generate all possible combinations of strings of length $$10$$ characters such as $$NAH562GTDS$$. Assuming that all the possible combinations are generated and sorted in a text file such that the very first string is $$0000000000$$ and the last one $$ZZZZZZZZZZ$$, how can we determine the line number in which a string appears?

Hint. Think to the given string as number written in base $$10+26$$.
P.S. In this base what is the numerical value of the digits $$Y$$, $$E$$ and $$S$$? Then what is the position of the string $$0000000YES$$? Show your effort and edit your question with your attempt.
• In this base what is the numerical value of the digits $Y$, $E$ and $S$? Then what is the position of the string $0000000YES$? Show your effort and edit your question with your attempt. – Robert Z Jan 18 '19 at 9:02