Solutions to a linear equation and perfect square

In summary, the conversation discusses ways to find integer solutions for a linear equation with known coefficients, as well as the concept of Diophantine equations. The second part of the conversation focuses on finding a perfect square using an equation and the question of whether there is a faster method to determine the value of "x" without substituting all integer values.
  • #1
smslca
64
0
1) Is there any way to find integer solutions for a linear equation ax+by=c, with a,b,c known and without having an another equation to substitute in the above one.
ex : 3x+y=394;

Is there any worst case for c being very large.

2)Is there any easy and fastest way to get t=115734564=9*(3586^2)
from t1=116964=9*(12996) to "t" using the equation t=(81*x*x)+(390240*x)+116964

Actually Here if we don't know the value of "t" and searching for a perfect square using the above equation. "t" is the first perfect square we ecounter at x, and all below x cannot generate a perfect square.

answer is t=280 , can we get "x" in the shortest way without substituting 1,2,3,...280 respectively.
i.e how to get from 12996 to a perfect square using the equation.
 
Last edited:
Mathematics news on Phys.org
  • #2
If you have only the equation ax+ by= c then you can solve for y "in terms of x":
[tex]y= \frac{c- ax}{b}[/tex]\
Choose any value at all for x and calculate y from the formula.

If you also have the requirement that all numbers, a, b, c, and x and y are integers, this is a "Diophantine" equation. It will have no solution if the largest common divisor of a and b does not also divide c. If it does, then you can divide through by that common divisor so we can assume that a and b are relatively prime.

In the example you give, 3x+ y= 394, note that if x= 1, y= -2, then 3x+ y= 3(1)+ (-2)= 1. Further if we multiply those by 394, so that x= 394, y= -788, then 3x+ y= 3(394)+ (-788)= 394(3(1)+ (-2))= 394(1)= 394.

But, also, if we take x= 394- k and y= -788+ 3k, then 3x+ y= 3(394- k)+ (-788+ 3k)= 3(394)+ (-788()- 3k+ 3k= 3(394)+ (-788)= 394 again.

That is, x= 394- k and y= -788+ 3k, for k any integer, are integer solutions to 3x+ y= 394.

I don't understand what you are asking with "2)Is there any easy and fastest way to get t=115734564=9*(3586^2)
from t1=116964=9*(12996) to "t" using the equation t=(81*x*x)+(390240*x)+116964"

In what sense do you get t from t1?
 
  • #3
HallsofIvy said:
I don't understand what you are asking with "2)Is there any easy and fastest way to get t=115734564=9*(3586^2)
from t1=116964=9*(12996) to "t" using the equation t=(81*x*x)+(390240*x)+116964"

In what sense do you get t from t1?

u can see t1=116964 and t= (81x^2)+390240x+(t1)
So we have used t1 in t . i.e by adding something to t1 we get t.

also t1= 9*12996;
t = 9*(3568^2);

so by substituting x=280 in (81x^2)+390240x and adding it to t1 we get 12996 to 3568^2;

My question is : If we do not know the value of "t" and by substituting the integer values in
the equation of "t" , to search for a value of "t" which gives a perfect square, we will get it at x=280. So is there any fastest way(method) to say "x" value is 280 without substuting the whole integer values.
 

1. What is a linear equation?

A linear equation is an algebraic equation in which each term is either a constant or a product of a constant and a single variable. The variable is usually represented by x, and the equation can be written in the form y = mx + b, where m is the slope and b is the y-intercept.

2. What is a perfect square?

A perfect square is a number that can be expressed as the product of two equal integers. For example, 4 is a perfect square because it is equal to 2 x 2. In mathematical notation, a perfect square can be written as n^2, where n is an integer.

3. How do you solve a linear equation?

To solve a linear equation, you must isolate the variable on one side of the equation. This can be done by using inverse operations to cancel out any constants or coefficients attached to the variable. Once the variable is isolated, you can solve for its value.

4. What is the difference between a linear equation and a perfect square?

A linear equation is an algebraic equation that represents a straight line when graphed, while a perfect square is a number that can be written as the product of two equal integers. They are different mathematical concepts and cannot be directly compared.

5. How are linear equations and perfect squares used in real life?

Linear equations are commonly used in fields such as engineering, physics, and economics to model and solve real-world problems. Perfect squares can be used in geometry to find the area of squares and other geometric shapes. They are also used in statistics to calculate standard deviation and variance.

Similar threads

Replies
18
Views
2K
  • Math POTW for Secondary and High School Students
Replies
1
Views
798
  • Calculus and Beyond Homework Help
Replies
1
Views
285
Replies
3
Views
792
Replies
4
Views
1K
  • General Math
Replies
5
Views
1K
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
372
Replies
2
Views
2K
Back
Top