Prove that the only perfect number of the form $2^x 3^y$ is $6$
My proof
A number $n$ is perfect if and only if:
$$\sigma(n)=2n$$ $$\sigma(2^x 3^y)=2^{x+1}3^y$$ $$(2^{x+1}-1)(3^{y+1}-1)=2^{x+2}3^{y}$$
Since $3 \nmid 3^{y+1}-1$ and $2\nmid 2^{x+1}-1$ we'll have that $2^{x+2} \mid 3^{y+1}-1$ and $3^y\mid 2^{x+1}-1$. This means that:
$$\frac{3^{y+1}-1}{2^{x+2}},\frac{2^{x+1}-1}{3^y} \in \Bbb{Z}$$
If $2$ numbers are integer, also their product is integer:
$$\frac{3^{y+1}2^{x+1}-3^{y+1}-2^{x+1}+1}{2^{x+2}3^y} \in \Bbb{Z}$$ $$\frac 32 - \frac{3^{y+1}+2^{x+1}-1}{2^{x+2}3^y} \in \Bbb{Z}$$ $$\frac 12 \left[3-\frac{3^{y+1}+2^{x+1}-1}{2^{x+1}3^y}\right]\in \Bbb{Z}$$
$$\left[3-\frac{3^{y+1}+2^{x+1}-1}{2^{x+1}3^y}\right]\in \Bbb{Z} \ \ (\equiv 0 \pmod{2}) $$
$$z=\frac{3^{y+1}+2^{x+1}-1}{2^{x+1}3^y} \ \ \in \Bbb{Z} \ \ (\equiv 1 \pmod{2})$$
Since the denominator grows more quickly (if $y\neq 0$) this reduces the exercise to a finite number of computations. We can also exclude the cases in which $x=0 \vee y=0$ because:
$$\sigma(2^x)=2^{x+1}-1<2^{x+1}$$ $$\sigma(3^y)=\frac{3^{y+1}-1}{2}<2\times 3^{y}$$
So our computations are reduced to:
$$(x,y)=(1,1) \Rightarrow z=1$$
With the successive couples the denominator becomes bigger than the denominator so it's useless to check. This completes the proof.
Is this correct?
Thank you for your time
If $(2^{x+1}-1)(3^{y+1}-1)=2^{x+2}3^y$, you have equality, not just divisibility.
$3^{y+1}-1=2^{x+2}$ (because those are the only even numbers on both sides of the equation), so $2^{x+1}-1=3^y$.
Following your proof, that means:
$$\frac{(3^{y+1}-1)(2^{x+1}-1)}{2^{x+2}3^y}=\frac12 \left[3-\frac{3^{y+1}+2^{x+1}-1}{2^{x+1}3^y}\right]=1.$$
Thus,
$$\frac{3^{y+1}+2^{x+1}-1}{2^{x+1}3^y}=1 \Rightarrow 3^{y+1}+2^{x+1}=2^{x+1}3^y+1 \Rightarrow 3^{y+1}=2^{x+1}(3^y-1)+1.$$
I think it's relatively easy to see from this final equation that $x=1$ is the only possible solution, which forces $y=1$. I had a harder time seeing why your fraction $z$ couldn't have other solutions.