This is three steps to choosing an 18 digit ID number.
Question:
How many possible combinations does this give?
I.E: How many unique numbers does this yield?
First:
18 digit number
choosen in ranges: xxx xx xxxxx xxxx xxx x
1 2 3 4 5 6
area 1 ranges from 100-999
area 2 ranges from 10-99
area 3 ranges from 10000-99999
area 4 ranges from 1000-9999
area 5 ranges from 100-999
area 6 ranges from 0-9
area 1 starts with 101, increments by three, yielding the sequence: 101,104,107…
when 999 is reached, the counting starts over at 100, yielding: 100,103,106…
when 999 is reached again, the counting starts over at 100, yielding: 100,103,106…
…
area 2 starts with 11, increments by three, yielding the sequence: 11,14,17…
when 99 is reached, the counting starts over at 10, yielding: 10,13,16…
when 99 is reached again, the counting starts over at 10, yielding: 10,13,16…
…
area 3 starts with 10001, increments by three, yielding the sequence: 10001,10004,10007…
when 99999 is reached, the counting starts over at 10, yielding: 10000,10003,10006…
when 99999 is reached again, the counting starts over at 10000, yielding: 10000,10003,10006…
…
area 4 starts with 1001, increments by three, yielding the sequence: 1001,1004,1007…
when 9999 is reached, the counting starts over at 1000, yielding: 1000,1003,1006…
when 9999 is reached again, the counting starts over at 1000, yielding: 1000,1003,1006…
…
area 5 starts with 101, increments by three, yielding the sequence: 101,104,107…
when 999 is reached, the counting starts over at 100, yielding: 100,103,106…
when 999 is reached again, the counting starts over at 100, yielding: 100,103,106…
…
area 6 starts with 1, increments by three, yielding the sequence: 1,4,7…
when 9 is reached, the counting starts over at 0, yielding: 0,3,6…
when 9 is reached again, the counting starts over at 0, yielding: 0,3,6…
…
The first 18 digit number is: 101 11 10001 1001 101 1 or 101111000110011011
The second 18 digit number is: 104 14 10004 1004 104 4 or 104141000410041044
…
Second:
randomly choose the number 2,3 or 4, with equal probability, this designates the
number of dashes to add to the 18 digit number
Third:
randomly choose where the dashes will go from 1-17, no duplicates, with equal probability
no numbers within one of other numbers, so you can’t have:1834–174
can’t have a dash at the beginning or end
Conclusion:
So, our first number could have 3 dashes at 2,6,14 yielding: 10-1111-00011001-1011
our second number could have 2 dashes at 2,5 yielding: 10-414-10004100410044