cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A321671 Primes of the form 2^j - 3^k, for j >= 0, k >= 0.

This page as a plain text file.
%I A321671 #43 Oct 13 2019 11:21:47
%S A321671 3,5,7,13,23,29,31,37,47,61,101,127,229,269,431,503,509,997,1021,1319,
%T A321671 2039,3853,4093,7949,8111,8191,14197,16141,16381,32687,45853,65293,
%U A321671 130343,130829,131063,131071,347141,502829,524261,524287,1028893,1046389,1048549
%N A321671 Primes of the form 2^j - 3^k, for j >= 0, k >= 0.
%C A321671 The numbers in A007643 are not in this sequence.
%C A321671 For n > 1, a(n) is of the form 8k - 1 or 8k - 3.
%C A321671 In this sequence, only 3 and 7 make both j and k even numbers.
%C A321671 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.
%H A321671 H. Gauchman and I. Rosenholtz (Proposers), R. Martin (Solver), <a href="https://www.jstor.org/stable/2691457">Difference of prime powers, Problem 1404</a>, Math. Mag., 65 (No. 4, 1992), 265; <a href="https://www.jstor.org/stable/2690747">Solution</a>, Math. Mag., 66 (No. 4, 1993), 269.
%F A321671 Intersection of A000040 and A192110.
%e A321671 7 = 2^3 - 3^0, so 7 is a term.
%o A321671 (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))
%Y A321671 Cf. A000040, A007643, A192110.
%Y A321671 Cf. A004051 (primes of the form 2^a + 3^b).
%Y A321671 Cf. A063005.
%K A321671 nonn
%O A321671 1,1
%A A321671 _Jinyuan Wang_, Nov 16 2018
%E A321671 More terms from _Alois P. Heinz_, Nov 16 2018