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.

A144975 Centered heptagonal twin prime numbers.

This page as a plain text file.
%I A144975 #19 Sep 08 2022 08:45:38
%S A144975 43,71,197,463,1933,5741,8233,9283,11173,14561,34651,41203,57793,
%T A144975 68111,84631,104147,139301,168631,207523,244861,307693,333103,357281,
%U A144975 415381,465011,475273,506731,592663,595547,607153,729373,742211,781397,876751
%N A144975 Centered heptagonal twin prime numbers.
%H A144975 Amiram Eldar, <a href="/A144975/b144975.txt">Table of n, a(n) for n = 1..10000</a>
%H A144975 Wikipedia, <a href="https://en.wikipedia.org/wiki/Centered_heptagonal_number">Centered heptagonal twin prime numbers</a>
%e A144975 43 is a term since it is centered heptagonal and the greater member of the twin primes pair (41, 43).
%e A144975 71 is a term since it is centered heptagonal and the lesser member of the twin primes pair (71, 73).
%t A144975 TwinPrimeQ[n_]:=If[PrimeQ[n],If[PrimeQ[n-2]||PrimeQ[n+2],True,False],False](*TwinPrimeQ*) lst={};Do[p=(7*n^2-7*n+2)/2;If[TwinPrimeQ[p],AppendTo[lst,p]],{n,2*6!}];lst
%o A144975 (Magma) [a:k in [1..510]|IsPrime(a) and (IsPrime(a-2) or IsPrime(a+2)) where a is (7*k^2-7*k+2) div 2]; // _Marius A. Burtea_, Jan 30 2020
%Y A144975 Cf. A001097, A069099.
%K A144975 nonn
%O A144975 1,1
%A A144975 _Vladimir Joseph Stephan Orlovsky_, Sep 27 2008