Base-4 requires everything before the last remainder to be divisible by 4. The last digit in the rogue
string is the remainder of the conversion.
Pick-3 = 4*4*4*4*4 = 1024
Pick-4 = 4*4*4*4*4*4*4=16,384
5-39 = max-index 575,757 = 4*4*4*4*4*4*4*4*4*4=1,048,576
PB 5-69 max-index = 11,238,513 = 4*4*4*4*4*4*4*4*4*4*4*4=16,777,216
Because we must maintain a power of 4 as the base there will almost always be a remainder, the values
above the number of lines in the matrix, this is where name rogues come from.
Take P-4 for example, 4^6=4,096 so the next available is 4^7= 16,384. We all know that a pick-4
only has 10K lines but base-4 is based on 4^y. The only difference between a daily game version of
the rogues and number games is that in number games the number set is converted to it's lex-index
before it's converted to a rogue. It takes a 10 digit rogue string to convert my 5-39. My algorithms
are very fast and can make around 5000 conversions per. Set-to-lex, Lex-to-Rogue, Rogue-to-Lex
etc...
The first step in the conversion will almost always start with the base power -1 so for pick-4 this means
that it will be 4^6=4096 as 4^7 is greater than the matrix. If the first rogue digit is 2 then we start with
2*4096=8192, which means that the actual set will fall within the range of 8192 to 9999. This is also the
reason there are no digit 3s in Rogue-A as 3*4096=12,288 which is above 10K. Each additional rogue
value that is set narrows down the range of possible sets and setting all 7 reduces to a single line. Think
of the rogue of as a 7 digit address of sorts where digits 0-1-2-3 are the only options.
Notice in pick-3
setting 4 of 5 positions produces 4 lines
setting 3 of 5 positions produces 16 lines
setting 2 of 5 positions produces 64 lines
setting 1 of 5 positions produces 256 lines
setting 0 of 5 positions produces 1000 lines, the process stops at 999 so the others are of no concern.
RL