In Russia you get into a bus, take a ticket, and sometimes say : Wow, a lucky number! Bus tickets are numbered by 6-digit numbers, and a lucky ticket has the sum of 3 first digits being equal to the sum of 3 last digits. When we were in high school (guys from math school No. 7 might remember that ) we had to write a code that prints out all the lucky tickets' numbers; at least I did, to show my loyalty to the progammers' clan. Now, if you add up all the lucky tickets' numbers you will find out that 13 (the most unlucky number) is a divisor of the result. Can you prove it (without writing a code)?
Subscribe to:
Post Comments (Atom)
Echo , the dolphin
Echo, a dolphin is trying to jump through a circular hole in his enclosure to escape from the aquarium. From echo's perspective just u...
-
Problem 6: The Two Doors You are trapped in a room with two doors. One leads to certain death and the other leads to freedom. You don...
-
Two old friends, Jack and Bill meet after a long time. Jack: Hey, how are you man? Bill: Not bad, got married and I have three kids now....
-
Circle in a chess board Consider an infinite chessboard, where the squares have side length of 1. The squares are colored black and whit...
No comments:
Post a Comment