Integer Solutions
Sum of Powers
The integer solutions of 3^x + 3^y = 810 are (x, y) = (4, 6) and (6, 4). Both give x + y = 10.
solve(3^x + 3^y = 810, x, y, domain=integers) asks for every integer pair, including negatives. Factor 810 = 2·3^4·5. If the smaller exponent were negative, clearing that power would leave one side congruent to 1 modulo 3 and the other side congruent to 0. Both exponents are therefore nonnegative.
The equal-exponent case 2·3^x = 810 asks 3^x = 405, which is not a power of 3. If x > y, then 3^y(3^(x-y) + 1) = 810 and the second factor is not divisible by 3, so y = 4 and 3^(x-4) = 9. Thus x = 6. Swapping the exponents gives the second pair. The only integer solutions are (x, y) = (4, 6) and (6, 4). Both give x + y = 10 and x·y = 24. Over the real numbers the same equation is a curve, so the integer list is a different statement from the real solution set.
Equation
solve(3^x + 3^y = 810, x, y, domain=integers)
How the equation is solved
Solve Equation keeps the algebra steps, not a curve. A linear equation isolates the variable. A polynomial can have several roots. A result is kept exact when it is an integer, a fraction, or a simple radical, and an approximation is added only when that helps.
Some inputs are identities or contradictions. 0·x = 0 is true for every x. 0·x = 5 is true for none. A system followed by 'find' solves the equations first and then evaluates the requested expression. The editor below sends the text you leave in the field.
Reading the input
solve(3^x + 3^y = 810, x, y, domain=integers)— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Edit one number in the field, then use Solve Equation. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.