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.

A178228 Numbers k such that (k^3 - 2, k^3 + 2) is a pair of cousin primes (see A178227).

This page as a plain text file.
%I A178228 #23 Feb 28 2021 16:37:11
%S A178228 129,189,369,435,549,555,561,819,1245,1491,1719,1779,1839,1875,1935,
%T A178228 2175,2289,2415,2451,2595,2709,2769,3141,3441,4401,4611,4851,5655,
%U A178228 5775,6075,6099,6795,6969,7125,7239,7365,8109,8139,8325,8361,8385,8535,8685,9591,9765
%N A178228 Numbers k such that (k^3 - 2, k^3 + 2) is a pair of cousin primes (see A178227).
%C A178228 Necessarily k is an odd multiple of 3, Least significant digit of k is e = 1, 5 or 9 (3^3 - 2, 7^3 + 2 are multiples of 5).
%H A178228 Amiram Eldar, <a href="/A178228/b178228.txt">Table of n, a(n) for n = 1..10000</a>
%e A178228 189 is a term since 189^3 - 2 = 6751267 = prime(460792), 189^3 + 2 = 6751271 = prime(460793).
%e A178228 12471 is a term since 12471^3 - 2 = 1939562763109 = prime(i), i = 71166976775, 12471^3 + 2 = 1939562763113 = prime(i+1).
%t A178228 Select[Range[10^4], And @@ PrimeQ[#^3 + {-2, 2}] &] (* _Amiram Eldar_, Dec 24 2019 *)
%o A178228 (PARI) for(n=1,10000,my(p1=n^3-2,p2=n^3+2);if(isprime(p1)&&isprime(p2)&&ispower((p1+p2)/2,3),print1(n,", "))) \\ _Hugo Pfoertner_, Dec 24 2019
%Y A178228 Cf. A023200, A046132, A090121, A164834, A172494, A174370, A176130, A176229, A178227.
%K A178228 nonn
%O A178228 1,1
%A A178228 Ulrich Krug (leuchtfeuer37(AT)gmx.de), May 23 2010
%E A178228 Edited by _N. J. A. Sloane_, May 23 2010
%E A178228 a(1) and a(21) inserted by _Amiram Eldar_, Dec 24 2019