flat assembler
Message board for the users of flat assembler.

Index > Heap > number based riddle

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
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.
Post 19 Feb 2012, 16:56
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Madis731
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

The answer is 2 Smile
Post 20 Feb 2012, 12:01
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
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.
Post 20 Feb 2012, 12:04
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.