OFFSET
1,1
COMMENTS
The numbers in A007643 are not in this sequence.
For n > 1, a(n) is of the form 8k - 1 or 8k - 3.
In this sequence, only 3 and 7 make both j and k even numbers.
Generally, the way to prove that a number is not in this sequence is to successively take residues modulo 3, 8, 5, and 16 on both sides of the equation 2^j - 3^k = x.
LINKS
H. Gauchman and I. Rosenholtz (Proposers), R. Martin (Solver), Difference of prime powers, Problem 1404, Math. Mag., 65 (No. 4, 1992), 265; Solution, Math. Mag., 66 (No. 4, 1993), 269.
EXAMPLE
7 = 2^3 - 3^0, so 7 is a term.
PROG
(PARI) forprime(p=1, 1000, k=0; x=2; y=1; while(k<p+1, while(x<y+p, x=2*x); if(x-y==p, print1(p, ", "); k=p); k++; y=3*y))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jinyuan Wang, Nov 16 2018
EXTENSIONS
More terms from Alois P. Heinz, Nov 16 2018
STATUS
approved