2 ms·
Taking a number of any size mod 7 can also be done in your head, from left to right! First time I saw this was in intro to theoretical CS, where the exercise is
by dahart 10y ago
Taking a number of any size mod 7 can also be done in your head, from left to right! First time I saw this was in intro to theoretical CS, where the exercise is create a state machine for mod 7. It was a big surprise for me that it's super simple and you just feed it digits til you run out. Almost trivial to do mentally on very large numbers as fast as someone can speak the number, with just a little practice.