You are not logged in.
Find all pairs of Integers (X,Y) such that..
X*Y is congruent to X+Y mod 9
(0,0) and (8,5) is what i can see by trial..
can anyone SHOW THE SOLUTION?
thx
Last edited by ZHero (2010-02-17 20:49:01)
If two or more thoughts intersect, there has to be a point!
Offline
Hi ZHero;
Neither of those examples are solutions, 0^0 does not leave a remainder of 0 when divided by nine. 8^5 is congruent to 8 mod 9 not (8+5).
The smallest positive solution I could find was x = 513 and y = 675 there are others.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi bobbym..
X*Y is NOT X^Y
its X x Y or X multiplied by Y
I'll edit my previous post to Capitalize x and y so that it looks Better. Sorry for the inconvenience caused by not using LaTex!
:-)
Last edited by ZHero (2010-02-17 20:47:49)
If two or more thoughts intersect, there has to be a point!
Offline
Hi ZHero;
No problem my vision is that bad.
First: all x,y that are divisible by 9 are solutions.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
First: all x,y that are divisible by 9 are solutions.
This is what ZHero meant by (0,0). Anything congruent to a solution will of course be a solution.
ZHero, the way you typically do these problems is you eliminate groups of cases till there is a small enough number to check by hand. For example, (x, 0) and (0, y) will not be solutions for x and y nonzero. Further, there are no solutions for x=1 or y=1.
No solutions where x+y = 9 except for x=3 and y=6 (or vice versa), and this is a solution.
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
for (8,5)
8 times 5 is 40 and 8 + 5 = 13.
40 - 36 = 4 and 13 - 9 = 4
Last edited by John E. Franklin (2010-02-18 05:36:43)
igloo myrtilles fourmis
Offline
for (8,5)
8 times 5 is 40 and 8 + 5 = 13.
40 - 36 = 4 and 13 - 9 = 4
yes.. (8,5) is a solution! U just substituted the values in place of (X,Y) whereas i wanna know HOW TO GET THESE VALUES!?
If two or more thoughts intersect, there has to be a point!
Offline
Hi guys;
Sorry for the confusion I caused by not seeing the problem correctly ( I thought it was x^y ).
Normally for a small mod like that I would just plow through the 64 possibilities of
x = 1,2,3,...8
y =1,2,3,...8
The solutions then are:
(2,2),(3,6),(5,8),(6,3),(8,5)
Of course I have left out (0,0) as trivial and you already have that pair.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Normally for a small mod like that I would just plow through the 64 possibilities of
My post reduced it to 15 possibilities.
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
Yes, but it required thinking. In the time it takes to reason about it my co-worker hands in the answer. He gets the raise and I am fired for being slow. Computing has replaced thinking.
Principle of Expediency: A good answer today is better than a great answer tomorrow.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Computing has replaced thinking.
Let's see you go compute all groups of order 8633 up to isomorphism.
Principle of Expediency: A good answer today is better than a great answer tomorrow.
Why are both not an option?
In any case, I'll wager the time it took for me to find those results was much shorter than the time it would take you to write a program.
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
Maybe, but both are pretty quick.
for (int i = 0; i <= 9 ; i++)
{
for (int j = i; j <= 9; j++)
{
if((i+j) % 9 == (i*j) % 9)
{
Console.WriteLine("(" + i + "," + j + ")")
}
}
}
That was around 2 minutes.
Why did the vector cross the road?
It wanted to be normal.
Offline
Hi
Normally for a small mod like that I would just plow through the 64 possibilities
Let's see you go compute all groups of order 8633 up to isomorphism.
That's why I clearly said for small mod.
Why are both not an option?
They both are: Just don't think about which one for too long because then you are violating P.O.E.
In any case, I'll wager the time it took for me to find those results was much shorter than the time it would take you to write a program.
Table[{x,y,Mod[x*y,9]==Mod[x+y,9]},{x,1,8},{y,1,8}]//Column
1 minute to write it:
1 minute to inspect the output:
Computing has replaced thinking.
Sorry, not being precise here. Human thinking is what I meant.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
X*Y-(X+Y)=9K
(X-1)(Y-1)=9K+1
for k=0, 1, 2 etc..
for k=0
(X-1)(Y-1)=1=1*1=-1*-1
X=2 Y=2 or X=0 Y=0 and so on....
If two or more thoughts intersect, there has to be a point!
Offline
Hi ZHero;
That idea unless I am missing something will not find (6,3) or (3,6) for any integer k.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
That's why I clearly said for small mod.
No, you said "Computing has replaced thinking."
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
Hi Ricky;
Yes, for this problem it has. No one has offered a general solution to this, so it seems suited to computer assault. Supposing I said mod 127. All I would have to do to recompute is to change two constants. You would have to rethink the entire problem. If I said x - y rather than x + y you only have to change a plus to a minus and your done.
A beginning programmer with Basic would know enough to form 2 loops and solve this. That is why no thinking is necessary here.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Ok, I'll accept that you were talking about in this problem only. However, by "replace", did you mean that there is no use for thinking?
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
I don't know, Rick. I think it is on the way out. Will anyone miss it?
I think you missed the obvious reason why I didn't employ any thinking on this problem. And that's really incorrect, programming is thinking. You did it already in post #5! I didn't have anything to add to that.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I think it is on the way out. Will anyone miss it?
And once again you sound like you're talking about in general. And even if you only meant it referring to this problem (I don't see how...), it's a ridiculous statement to make.
And that's really incorrect, programming is thinking.
Were you really of the opinion that I thought a brain dead person could program? Obviously there is less thinking when one uses a brute force method, that's why it's called brute force. This is the difference we're talking about.
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
I hope I understand this problem correctly. Anyway, here's what I've found:
Solutions occur when (x+y) mod 9 is either 4 or zero.
Last edited by phrontister (2010-02-22 00:48:22)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Hi Rick;
And once again you sound like you're talking about in general. And even if you only meant it referring to this problem (I don't see how...), it's a ridiculous statement to make.
You just can't pull out one little statement in a post. You have to read it all.
Not so ridiculous. Just a perception an opinion really. You have to have been around long enough to have seen the difference, Machines went from a 17 operations per second clunker to Teraflops. Do you think that kind of change left man unaffected?
Were you really of the opinion that I thought a brain dead person could program?
No. I was refuting my own statement that no thinking was required to write those programs.
I hate commenting about a phrase such as brain dead. Let me just say many of the people who were higher up than I ( status, rank or intelligence ), shared that exact opinion and voiced it often.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I'm not really sure I understand much of your post. I have no idea why the recent trends in computing power have anything to do with the discussion of computation vs. thought.
In any case, you don't wait for a problem to be uncomputable to start learning how to think about problems. For example, my method of eliminating obvious choices is exactly how one goes about classifying simple Lie algebras. Learning a method means you can attempt to apply that method to other problems.
Seeing a problem solved in various ways can't hurt you.
"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."
Offline
The hurt lies in how you came to the point of solving the problem which we also feel. Definitely endureable ricky, but definitely an aouch. How ever you solved it, it was finite, and hence I am here, good bye and thank you.
I see clearly now, the universe have the black dots, Thus I am on my way of inventing this remedy...
Offline
Hi;
I'm not really sure I understand much of your post. I have no idea why the recent trends in computing power have anything to do with the discussion of computation vs. thought.
It has everything to do with it. The faster machines get the more brute force algorithms are used.. More and more problems are handled by putting them between loops. Take the factoring of large numbers for instance. Currently it is in the realm of topology and number theory. You need all kinds of tough math to factor say a 150 - 200 digit number. It would take months or years. But if you have a quantum computer you can factor that in a microsecond. Using trial division, the stupidest algorithm in the world. Hardware replaces thinking because we humans will always do what is easiest and fastest.
In any case, you don't wait for a problem to be uncomputable to start learning how to think about problems.
You don't use a cannon to kill a mosquito. I have already explained why I answered that problem like that. I explained it candidly in post #19. This is what I wrote.
You did it already in post #5! I didn't have anything to add to that.
Had you provided the solutions instead of just pruning the tree, I would not even have posted anything, and none of this would be happening. Simply, there was nothing more to be said on top of your analysis. So I finished up the question using a computer method. I did not use your ideas in the body of my program because frankly it would take too long. The dumb program was the fastest and most reliable way to now get the actual answers.
Seeing a problem solved in various ways can't hurt you.
Now this one is incomprehensible. Who said it could? Methods, I am famous for bizarre methods of solving problems. Almost anyone can come up with a simpler way to do every problem I solve. If that problem would have been too tough for a brute force approach I would have made every attempt to reduce the number of possibilities.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline