flat assembler
Message board for the users of flat assembler.

 Index > Heap > number based riddle Goto page Previous  1, 2
Author
Tomasz Grysztar

Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
I think it's correct. I just have one trivia to add.
MHajduk wrote:
Factorization of the number 131313:

131313 = 3 * 7 * 13^2 * 37

So number x is divisible by 7.
It comes from the number 10101 being divisible by 7, that any pair of digits repeated three times will give you a number divisible by 7. And thus any pair of digits repeated 3*n times will also give you a number divisible by 7.
19 Feb 2012, 16:56

Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Coming back to the original puzzle. Its interesting how differently people approach a problem.

Actually the solution to this and similar puzzles (i.e. number-crossword puzzle) goes like this:
6666, 9999, 0000 are all 4 so 0, 6 or a 9 equals 1.
8809 = 6 so x+x+1+1=6, x = 2
2171 = 0 so 1, 2, 7 are all equal to 0.
5555 = 0, ergo 5 = 0

2581 = 0+0+2+0 = 2

20 Feb 2012, 12:01
revolution
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 17287
revolution
Madis731: Why did you assume a simple addition operator? And why only taking symbols singly at a time? Perhaps some symbols are negative values?

There are actually an infinite number of possible solutions. Although most of them will be incredibly complex they would still be valid solutions.
20 Feb 2012, 12:04
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

 Jump to: Select a forum Official----------------AssemblyPeripheria General----------------MainDOSWindowsLinuxUnixMenuetOS Specific----------------MacroinstructionsCompiler InternalsIDE DevelopmentOS ConstructionNon-x86 architecturesHigh Level LanguagesProgramming Language DesignProjects and IdeasExamples and Tutorials Other----------------FeedbackHeapTest Area
Goto page Previous  1, 2

Forum Rules:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou can attach files in this forumYou can download files in this forum