OFFSET
1,1
MATHEMATICA
Do[k = 0; While[Abs[2^n - 3^k] > Abs[2^n - 3^(k + 1)], k++ ]; If[PrimeQ[Abs[2^n - 3^k]], Print[n]], {n, 1, 4000}] (* Stefan Steinerberger, Jan 22 2006 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Benoit Cloitre, Aug 17 2002
EXTENSIONS
a(19)-a(22) from Stefan Steinerberger, Jan 22 2006
a(23)-a(29) from Jinyuan Wang, Apr 05 2020
STATUS
approved