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-5 of 5 results.

A127351 Prime numbers n such that A127350(k) = 2*n for some k.

Original entry on oeis.org

2003, 7883, 31151, 35363, 394739, 434939, 541007, 564983, 837929, 865979, 2453999, 2680493, 3479303, 3536219, 4145717, 4367267, 4706311, 5414159, 6541103, 6856019, 8804231, 9109223, 10227323, 10296059, 10701683, 10795507
Offset: 1

Views

Author

Artur Jasinski, Jan 11 2007

Keywords

Comments

Primes of the form (Sum_{i=k..k+3}Sum_{j=i+1..k+4}prime(i)*prime(j))/2.
Primes of the form a/2 where a is the coefficient of x^3 of the polynomial Prod_{j=0,4}(x-prime(k+j)) for some k.

Crossrefs

Programs

  • Mathematica
    a = {}; Do[If[PrimeQ[(Prime[x] Prime[x + 1] + Prime[x] Prime[x + 2] + Prime[x] Prime[x + 3] + Prime[x] Prime[x + 4] + Prime[x + 1] Prime[x + 2] + Prime[x + 1] Prime[x + 3] + Prime[x + 1] Prime[x + 4] + Prime[x + 2] Prime[x + 3] + Prime[x + 2] Prime[x + 4] + Prime[x + 3] Prime[x + 4])/2], AppendTo[a, (Prime[x] Prime[x + 1] + Prime[x] Prime[x + 2] + Prime[x] Prime[x + 3] + Prime[x] Prime[x + 4] + Prime[x + 1] Prime[x + 2] + Prime[x + 1] Prime[x + 3] + Prime[x + 1] Prime[x + 4] + Prime[x + 2] Prime[x + 3] + Prime[x + 2] Prime[x + 4] + Prime[x + 3] Prime[x + 4])/2]], {x, 1, 1000}]; a
  • PARI
    {m=235;k=4;for(n=1,m,a=sum(i=n,n+k-1,sum(j=i+1,n+k,prime(i)*prime(j)));if(isprime(b=a/2),print1(b,",")))} \\ Klaus Brockhaus, Jan 21 2007
    
  • PARI
    {m=235;k=4;for(n=1,m,a=polcoeff(prod(j=0,k,(x-prime(n+j))),3);if(isprime(b=a/2),print1(b,",")))} \\ Klaus Brockhaus, Jan 21 2007

Extensions

Edited by Klaus Brockhaus, Jan 21 2007

A127345 a(n) = pq + pr + qr with p = prime(n), q = prime(n+1), and r = prime(n+2).

Original entry on oeis.org

31, 71, 167, 311, 551, 791, 1151, 1655, 2279, 3119, 3935, 4871, 5711, 6791, 8391, 9959, 11639, 13175, 14831, 16559, 18383, 20975, 24071, 27419, 30191, 32231, 33911, 36071, 40511, 45791, 51983, 55199, 60167, 64199, 69599, 73911, 79031, 84311
Offset: 1

Views

Author

Artur Jasinski, Jan 11 2007

Keywords

Comments

a(n) = coefficient of x^1 of the polynomial Product_{j=0..2} (x-prime(n+j)) of degree 3; the roots of this polynomial are prime(n), ..., prime(n+2); cf. Vieta's formulas.
Arithmetic derivative (see A003415) of prime(n)*prime(n+1)*prime(n+2). [Giorgio Balzarotti, May 26 2011]

Crossrefs

Programs

  • Mathematica
    Table[Prime[n]*Prime[n+1] + Prime[n]*Prime[n+2] + Prime[n+1]*Prime[n+2], {n, 100}]
    Total[Times@@@Subsets[#,{2}]]&/@Partition[Prime[Range[40]],3,1] (* Harvey P. Dale, Sep 11 2017 *)
  • PARI
    {m=38;k=2;for(n=1,m,print1(sum(i=n,n+k-1,sum(j=i+1,n+k,prime(i)*prime(j))),","))} \\ Klaus Brockhaus, Jan 21 2007
    
  • PARI
    {m=38;k=2;for(n=1,m,print1(polcoeff(prod(j=0,k,(x-prime(n+j))),1),","))} \\ Klaus Brockhaus, Jan 21 2007
    
  • PARI
    p=2;q=3;forprime(r=5,1e3,print1(p*q+p*r+q*r", ");p=q;q=r) \\ Charles R Greathouse IV, Jan 13 2012

Extensions

Edited by Klaus Brockhaus, Jan 21 2007

A127349 a(n) = Sum_{i=n..n+1} Sum_{j=i+1..n+2} Sum_{k=j+1..n+3} prime(i)*prime(j)*prime(k).

Original entry on oeis.org

247, 886, 2556, 6288, 12900, 22392, 40808, 63978, 105000, 161142, 216232, 294168, 385544, 507782, 658820, 858000, 1067502, 1251952, 1518910, 1783854, 2114748, 2618148, 3147710, 3696090, 4239528, 4626300, 5033232, 5898936, 6871200
Offset: 1

Views

Author

Artur Jasinski, Jan 11 2007

Keywords

Comments

a(n) = absolute value of the coefficient of x^1 of the polynomial Product_{j=0..3} (x - prime(n+j)) of degree 4; the roots of this polynomial are prime(n), ..., prime(n+3); cf. Vieta's formulas.
All terms with exception of the first one are even.
Arithmetic derivative (see A003415) of prime(n)*prime(n+1)*prime(n+2)*prime(n+3). - Giorgio Balzarotti, May 26 2011

Crossrefs

Programs

  • Magma
    [NthPrime(n)*NthPrime(n+1)*NthPrime(n+2) + NthPrime(n)*NthPrime(n+2)*NthPrime(n+3) + NthPrime(n)*NthPrime(n+1)* NthPrime(n+3) + NthPrime(n+1)*NthPrime(n+2)*NthPrime(n+3): n in [1..30]]; // Vincenzo Librandi, Feb 12 2018
  • Maple
    P := select(isprime, [2, seq(i, i = 1 .. 1000, 2)]):
    f := L) -> convert(L, `*`)*add(1/t, t = L):
    seq(f(P[i..i+3]),i=1..nops(P)-3); # Robert Israel, Feb 11 2018
  • Mathematica
    Table[Prime[n] Prime[n+1] Prime[n+2] + Prime[n] Prime[n+2] Prime[n+3] + Prime[n] Prime[n+1] Prime[n+3] + Prime[n+1] Prime[n+2] Prime[n+3], {n, 100}]
  • PARI
    {m=29;h=3;for(n=1,m,print1(sum(i=n,n+h-2,sum(j=i+1,n+h-1,sum(k=j+1,n+h,prime(i)*prime(j)*prime(k)))),","))} \\ Klaus Brockhaus, Jan 21 2007
    
  • PARI
    {m=29;k=3;for(n=1,m,print1(abs(polcoeff(prod(j=0,k,(x-prime(n+j))),1)),","))} \\ Klaus Brockhaus, Jan 21 2007
    

Formula

a(n) = A046302(n)*Sum_{i=n..n+3} 1/prime(i). - Robert Israel, Feb 11 2018

Extensions

Edited by Klaus Brockhaus, Jan 21 2007

A127348 Coefficient of x^2 in the polynomial (x-p(n))*(x-p(n+1))*(x-p(n+2))*(x-p(n+3)), where p(k) is the k-th prime.

Original entry on oeis.org

101, 236, 466, 838, 1330, 1918, 2862, 3856, 5350, 7096, 8622, 10558, 12654, 15228, 18090, 21550, 24916, 27702, 31500, 35068, 39298, 45322, 51240, 56980, 62398, 66130, 69958, 77854, 86230, 96618, 106888, 115842, 124342, 133122, 144090, 152568, 163282, 174348
Offset: 1

Views

Author

Artur Jasinski, Jan 11 2007

Keywords

Examples

			a(1)=101 because (x-2)*(x-3)*(x-5)*(x-7) = x^4 - 17x^3 + 101x^2 - 247x + 210.
		

Crossrefs

Programs

  • Maple
    a:=n->coeff(expand((x-ithprime(n))*(x-ithprime(n+1))*(x-ithprime(n+2))*(x-ithprime(n+3))),x,2): seq(a(n),n=1..45); # Emeric Deutsch, Jan 20 2007
  • Mathematica
    Table[Prime[x] Prime[x + 1] + Prime[x] Prime[x + 2] + Prime[x] Prime[x + 3] + Prime[x + 1] Prime[x + 2] + Prime[x + 1] Prime[x + 3] + Prime[x + 2] Prime[x + 3], {x, 1, 100}]
    Total[Times@@@Subsets[#,{2}]]&/@Partition[Prime[Range[40]],4,1] (* Harvey P. Dale, Apr 15 2019 *)
  • PARI
    {m=35;k=3;for(n=1,m,print1(sum(i=n,n+k-1,sum(j=i+1,n+k,prime(i)*prime(j))),","))} \\ Klaus Brockhaus, Jan 21 2007
    
  • PARI
    {m=35;k=3;for(n=1,m,print1(abs(polcoeff(prod(j=0,k,(x-prime(n+j))),2)),","))} \\ Klaus Brockhaus, Jan 21 2007

Formula

a(n) = p(n)*p(n+1) + p(n)*p(n+2) + p(n)*p(n+3) + p(n+1)*p(n+2) + p(n+1)*p(n+3) + p(n+2)*p(n+3), where p(k) is the k-th prime (by Viete's formula relating the zeros and the coefficients of a polynomial). - Emeric Deutsch, Jan 20 2007

Extensions

Edited by Emeric Deutsch and Klaus Brockhaus, Jan 20 2007

A127694 Absolute value of coefficient of x^3 in polynomial whose zeros are 5 consecutive integers starting with the n-th integer.

Original entry on oeis.org

580, 1175, 2070, 3325, 5000, 7155, 9850, 13145, 17100, 21775, 27230, 33525, 40720, 48875, 58050, 68305, 79700, 92295, 106150, 121325, 137880, 155875, 175370, 196425, 219100, 243455, 269550, 297445, 327200, 358875, 392530, 428225, 466020, 505975, 548150, 592605
Offset: 1

Views

Author

Artur Jasinski, Jan 23 2007

Keywords

Comments

Sums of all distinct products of 3 out of 5 consecutive integers, starting with the n-th integer; value of 3rd elementary symmetric function on the 5 consecutive integers. cf. Vieta's formulas.

Crossrefs

Programs

  • Magma
    I:=[580, 1175, 2070, 3325]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..40]]; // Vincenzo Librandi, Jun 28 2012
  • Mathematica
    CoefficientList[Series[5*(116-229*x+170*x^2-45*x^3)/(1-x)^4,{x,0,40}],x] (* Vincenzo Librandi, Jun 28 2012 *)

Formula

a(n) = 5*(n+3)*(2*n^2+12*n+15). G.f.: 5*x*(116-229*x+170*x^2-45*x^3)/(1-x)^4. - Colin Barker, Mar 28 2012
a(n) = 4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4). - Vincenzo Librandi, Jun 28 2012
Showing 1-5 of 5 results.