It is simple to show that B < 7. 6 is obvious, then the other options are easy to check. I think it is also not too hard to show that exactly one of them must be even when not both 6.
What is the fastest way to fill up a text editor with a string of 1 million of the same character? (Let’s go with the letter “i”.)
There are a lot of variables here. You can type “i’s” at a certain rate, maybe around five per second, by simply pressing its key repeatedly. You can also hold down the key, initially getting a single “i,” and then after a “repeat delay” of about half a second, getting a quickly repeating stream of “i’s” at a “repeat rate” of about 30 per second. You can also use copy and paste. If you release the “i” key, you can hit Ctrl+A then Ctrl+C, then hit the right arrow key, and finally Ctrl+V, selecting all your text, copying it and pasting it to what you had already. (Replace Ctrl with Command if on a Mac, of course.) This process costs you about a second from “i” key release to initial depress of Ctrl+V. If you hold down Ctrl+V, there is the same repeat delay and repeat rate that then generates a bunch of copies of your clipboard very quickly.
So the questions are: How big should you make the original edition of your clipboard before you transition to the more efficient copy/paste? Then, how long should you stick with that clipboard before going back to the Ctrl+A and growing your clipboard again?
If we're assuming that our only parameters are how many original 'i's we have, and how often we repeat the ctrl+a, the best I get it starting with 12 'i's and hitting ctrl+a every 16 pastes.
12 'i's = .866s
paste 16 times = 2s
need to repeat 4 times - 12*17^4 = 1002252
4*2+.866 = 8.866s
Sort of surprised that it can get this fast. Not at all optimized though, I guess you could shave some milliseconds if you're willing to use an inconsistent number of pastes each time.
Pasting 16 times takes 16/30 seconds not 15/30 seconds. So you're either pasting 15 times for a size of 16 in 2s or 16 times for a size of 17 in 2.03s I think.
Best I can get is 9.008s with an initial paste of 'I'+ 15x 'I' and then repeat every 15.
it's 15/30 because you click right for one copy (included in the 1 second) and then the first ctrl+v is instantaneous, so after the .5s delay you get another 15 copies in .5s for 17 total copies.