Yeah plus seq can generate sequences with leading zeroes (something like seq -f %04.f 1 20).
So instead of scripting, he could have generated a sorted list of numbers from the files he had. Created a file with the sequence of numbers for the range and diffed/commed the whole thing. Voilà...