Some factorizations of numbers of the form 2ⁿ±1