Having been interested by the question Solution to $|2^m-3^n|=35$? I was making some computations and I observed that numbers of the form $3^{12k-2i}- 2^{12k-2j}$, where $k$ any natural number, $i = \{0,1,2,\dots 6k\}$ and $ j=6k-i$,
are always divisible by $35$.
For example:
if $k=1, i=1, j=5$ then $3^{10} - 2^2= 5\cdot 7^2\cdot241$
if $k=2, i=3 , j= 9$ then $3^{18}-2^6 = 5^2\cdot 7\cdot 29\cdot 97 \cdot 787$, etc..
Moreover it seems that this formula covers all numbers of the form $3^n-2^m$ which are divisible by $35$.
- How to prove the case ?
Additionally $2,3,5,7$ are consecutive primes.
- Are there formulas for other consecutive primes when $p_1^m-p_2^n$ is divisible by $p_3 \cdot p_4$ ? How to arrive at them by other method than experimental calculations?
Consider $3^6-2^6=729-64=665=35 . 19$ ⇒ $(3^6)^k -(2^6)^k≡ 0 mod 35$ or:
$ 3 ^{6k} -2^{6k} ≡ 0 mod 35$
The difference of two consecutive prime (or any two primes except 2 and 3)is an even number which is composite and can be factorized into primes which are less than $p_1$ and $ p_2$, that is there can be more than two primes in factors(like in you 2nd example).
– sirous Nov 08 '17 at 20:10