he first two consecutive numbers whose factors have the same sum
I assume you mean the sum of the aliquot factors/divisors (those other than the number itself). If you include the number itself as a factor, there is no answer.
2 and 3 satisfy the requirement as both have only 1 aliquot divisor/factor, that being 1.
To find the first two consecutive numbers whose factors have the same sum, we need to consider the sum of the aliquot factors/divisors (excluding the number itself).
Let's start by finding the aliquot factors of a few consecutive numbers:
For the number 2, the aliquot factors are [1].
For the number 3, the aliquot factors are [1].
We can see that both 2 and 3 have only one aliquot factor, which is 1.
Therefore, the first two consecutive numbers whose factors have the same sum are 2 and 3.