• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

How do I plot 10x + y = c for integers only? nt

Howard

Lifer
Oct 14, 1999
47,982
11
81
Originally posted by: hypn0tik
Plot how? On a calculator? By hand?

What's TIA?
The fastest way, I guess.

I'm trying to figure out how:

pick a number from 1 to 10
multiply by 2
add 5
multiply by 5
pick another number from 1 to 10
add to previous total

You can find out what the numbers are... but I can't figure it out yet.
 

esun

Platinum Member
Nov 12, 2001
2,214
0
0
It is the set of all lines with slope minus 10 passing through point c at x = 0 (on the y-axis). As long as you constrain c to an integer, you have your result. It's an infinitely large set of solutions, though.
 

Howard

Lifer
Oct 14, 1999
47,982
11
81
Originally posted by: esun
It is the set of all lines with slope minus 10 passing through point c at x = 0 (on the y-axis). As long as you constrain c to an integer, you have your result. It's an infinitely large set of solutions, though.
How is it that my friend knew what numbers I picked?
 

mfs378

Senior member
May 19, 2003
505
0
0
Basically there is a 1-to-1 mapping between (x,y) pairs and the result of the operation. A simpler example of the same thing would be to take x and multiply by 1000 and then add y.

example:
x = 4
y = 7

x*1000+y = 4007

So the result is 4007. Now it is pretty obvious that the numbers were 4 and 7 given the result. Your example is just a little bit more complicated to work through.
 

Howard

Lifer
Oct 14, 1999
47,982
11
81
Originally posted by: mfs378
Basically there is a 1-to-1 mapping between (x,y) pairs and the result of the operation. A simpler example of the same thing would be to take x and multiply by 1000 and then add y.

example:
x = 4
y = 7

x*1000+y = 4007

So the result is 4007. Now it is pretty obvious that the numbers were 4 and 7 given the result. Your example is just a little bit more complicated to work through.
oops