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.

Showing 1-4 of 4 results.

A069496 Smaller member of a twin prime pair with a square sum.

Original entry on oeis.org

17, 71, 881, 1151, 2591, 3527, 4049, 15137, 20807, 34847, 46817, 69191, 83231, 103967, 112337, 149057, 176417, 179999, 206081, 281249, 362951, 388961, 438047, 472391, 478241, 538721, 649799, 734471, 808991, 960497, 1080449, 1143071
Offset: 1

Views

Author

Amarnath Murthy, Mar 30 2002

Keywords

Comments

All members of this sequence have digital root 8. - J. W. Helkenberg, Jul 24 2013
First bisection of A232878. - Gary Croft, Dec 05 2013

Examples

			71 is a term as the smaller member of the twin prime pair (71,73) as 71+73 = 144 = 12^2.
		

Crossrefs

Programs

  • Maple
    isa := n -> isprime(n) and isprime(n+2) and issqr(2*n+2):
    select(isa, [$4..1000000]); # Peter Luschny, Jan 05 2020
  • Mathematica
    First/@Select[Partition[Prime[Range[9*10^4]],2,1],Differences[#]=={2} && IntegerQ[Sqrt[Total[#]]] &] (* Jayanta Basu, May 26 2013 *)
  • PARI
    t(n, p=3) = {while( p+2 < (p=nextprime( p+1 )) || n-->0, ); p-2}
    for(n=1, 1e4, if(issquare(2*t(n)+2), print1(t(n), ", "))); \\ Altug Alkan, Mar 14 2016

Formula

a(n) = (A037072(n)-2)/2.
a(n) = A118593(n) - 2. - Zerinvary Lajos, Jul 31 2006

Extensions

More terms from Sascha Kurz, Apr 01 2002

A245591 Cubes which are the sum of twin prime pairs.

Original entry on oeis.org

8, 216, 5268024, 59319000, 114791256, 209584584, 543338496, 970299000, 1137893184, 1177583616, 1505060136, 1728000000, 4065356736, 5545233000, 5890514616, 7011739944, 8947094976, 9340607016, 10941048000, 13824000000, 14996130696, 17293606056, 17657244864, 17902480896, 20480864256
Offset: 1

Views

Author

Derek Orr, Jul 26 2014

Keywords

Comments

All terms starting with 216 are multiples of 216 and final digits are 0, 4, 6. - Zak Seidov, Aug 03 2014

Examples

			3 and 5 are twin primes and 3 + 5 = 8 = 2^3. So 8 is a member of this sequence.
		

Crossrefs

Programs

  • PARI
    a(N) = for(n=1,N,p=n^3;if(nextprime(p/2)-precprime(p/2)==2&&precprime(p/2)+nextprime(p/2)==p,print1(p,", "))) \\ vary the program's range for any N

A119767 Perfect powers which are the sum of twin prime pairs.

Original entry on oeis.org

8, 36, 144, 216, 1764, 2304, 5184, 7056, 8100, 30276, 41616, 69696, 93636, 138384, 166464, 207936, 224676, 279936, 298116, 352836, 360000, 412164, 562500, 725904, 777924, 876096, 944784, 956484, 1077444, 1299600, 1468944, 1617984, 1920996, 2160900, 2286144, 2304324, 2509056
Offset: 1

Views

Author

Walter Kehowski, Jun 18 2006

Keywords

Comments

Since twin primes greater than (3,5) are either occur as (5,7) mod 12 or (11,1) mod 12, all sums of such twin primes are divisible by 12. Thus all powers are divisible by 12 and are best looked at in base 12. For example, a(3) = 5E + 61 = 100, where E is eleven.

Examples

			8 = 2^3 = 3 + 5 (twin primes). Thus 8 is a member of this sequence.
36 = 6^2 = 17 + 19 (twin primes). Thus 36 is a member of this sequence.
a(3) = 71 + 73 = 144.
		

Crossrefs

Programs

  • Maple
    egcd := proc(n::nonnegint) local L; if n=0 or n=1 then n else L:=ifactors(n)[2]; L:=map(z->z[2],L); igcd(op(L)) fi end: L:=[]: for w to 1 do for x from 1 to 2*12^2 do s:=6*x; for r from 2 to 79 do t:=s^r; if egcd(s)=1 and andmap(isprime,[(t-2)/2,(t+2)/2]) then print((t-2)/2,(t+2)/2,t)); L:=[op(L),[(t-2)/2,(t+2)/2,t]]; fi; od od od; L:=sort(L,(a,b)->a[1]z[3],L);
  • Mathematica
    Lim=2600000;ts=Select[Prime[Range[PrimePi[Lim]]], PrimeQ[# + 2] &]2+2;pp=Join[{1}, Select[Range[Lim], GCD@@FactorInteger[#][[All, 2]]>1&]] ;s={};Do[ If[MemberQ[ pp,ts[[n]]],AppendTo[s,ts[[n]]]] ,{n,Length[ts]}];s (* James C. McMahon, Sep 18 2024 *)
  • PARI
    a(N) = for(n=1,N,if(ispower(n),if(nextprime(n/2)-precprime(n/2)==2&&precprime(n/2)+nextprime(n/2)==n,print1(n,", ")))) \\ vary the program's range for any N; Derek Orr, Jul 27 2014

Extensions

R. J. Mathar pointed out that 8 was missing. Once corrected, the old A245591 could be merged into this entry. - N. J. A. Sloane, Jul 30 2014

A370453 Twin prime pair sums that equal a twin prime pair product plus 1 (divided by 36).

Original entry on oeis.org

36, 144, 1764, 5184, 360000, 412164, 777924, 4536900, 5673924, 7225344, 12659364, 12830724, 20684304, 37601424, 56972304, 64160100, 81757764, 179506404, 194100624, 255104784, 309689604, 366339600, 461906064, 689062500, 689692644, 1191078144, 1495368900, 1538835984
Offset: 1

Views

Author

Keith F. Lynch, Feb 18 2024

Keywords

Comments

A twin prime pair (other than {3,5}) is always in the form {6m-1,6m+1}, so the product of the pair is always in the form 36*m^2-1 and a twin prime sum is always in the form 12m. As such, a twin prime sum can be one more than a twin prime product, but not vice versa, nor can a sum and product ever be equal.
{71,73} and {881,883} appear both as sums and as products.

Examples

			144 is a term because 71+73 = 144 and 11*13 = 143.
5184 is a term because 2591+2593 = 5184 and 71*73 = 5183.
		

Crossrefs

Subset of A037072.
Cf. A152787.

Programs

  • Mathematica
    With[{p = Select[Prime[Range[4200]], PrimeQ[# + 2] &]}, Select[p*(p + 2) + 1, And @@ PrimeQ[#/2 + {-1, 1}] &]] (* Amiram Eldar, Feb 19 2024 *)
Showing 1-4 of 4 results.