Let me tell you a little story about Alice and her friends
Alice was trying to convert the number six into binary. She noticed that it was greater than one! Alice new that numbers greater
than one were not to be trifled with, so she called in her friend
Bob to help.
First, Alice divided six by two and got the number three.
"Hey Bob, would you please write the binary representation of three on
the blackboard for me?" she asked.
Bob was not one to abandon his friend in time of need, so he agreed.
While he was working, Alice took a well deserved pause at the coffee
machine. When she came back, Bob was finished. Alice calculated the remainder of six modulo two and got the number 0, so she wrote 0 on the blackboard right next to the numbers already written by Bob.
But how did Bob do it?
While trying to convert the number three in binary, Bob noticed that it
was greater than one! Bob didn't want to make a mistake and disappoint
Alice, so he called in his friend Charlie to help.
First, Bob divided three by two and got the number one.
"Hey Charlie, would you please write the binary representation of one on the blackboard for me?" he asked.
Charlie was always ready to help Bob impress everyone, so he heartily agreed. While he was working, Bob went to the library and read a chapter of his favourite book, Gödel, Escher and Bach. When Bob came back, Charlie was finished. Bob calculated the remainder of three modulo two and got the number one, so he wrote one on the blackboard right next to the number already written by Charlie.
But how did Charlie do it?
Charlie tried very hard to convert the number one to binary and noticed that one was not greater than one. That was very good news, because Charlie had never been too confident with large numbers. He decided he could handle the task on his own, and did not call any friend for help.
Charlie calculated the remainder of one modulo two and got the number one. So he wrote one on the blackboard.
Recalling the story in order
First, Charlie wrote one on the blackboard, while Bob was reading and Alice was drinking coffee.
Then, Bob wrote one on the blackboard, while Alice was still drinking coffee.
Then, Alice wrote zero on the blackboard.
Finally, the number 110
was written on the blackboard.