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.

A090109 Values of k such that {P(k), P(k+1), ..., P(k+10)} are all prime numbers, where P(k) = k^2 - 79*k + 1601.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 259, 260, 261
Offset: 1

Views

Author

Labos Elemer, Dec 29 2003

Keywords

Comments

a(n) is the first argument providing 11 "polynomially consecutive" primes with respect to the polynomial x^2 - 79*x + 1601 described by Escott in 1899.

Examples

			k = 1 provides the following non-monotonic (!) chain of 11 "polynomially consecutive" primes as follows: {1523, 1447, 1373, 1301, 1231, 1163, 1097, 1033, 971, 911, 853}.
		

Crossrefs

Programs

  • Mathematica
    Position[Times @@@ Partition[Table[Boole@PrimeQ[k^2 - 79*k + 1601], {k, 1, 1000}], 11, 1], 1] // Flatten (* Amiram Eldar, Sep 27 2024 *)
  • PARI
    isp(x) = isprime(x^2 - 79*x + 1601);
    lista(kmax) = {my(v = vector(11, k, isp(k))); for(k = 12, kmax, if(vecprod(v) == 1, print1(k - 11, ", ")); v = concat(vecextract(v, "^1"), isp(k)));} \\ Amiram Eldar, Sep 27 2024

Extensions

Data corrected by Amiram Eldar, Sep 27 2024

A090110 Values of k such that {P(k), P(k+1), ..., P(k+7)} are all prime numbers, where P(k) = 4*k^2 - 154*k + 1523.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 66, 129, 130, 328, 1619, 7509, 29714, 45905, 447588, 509862, 1022565, 1102373, 1388125, 1665379, 1762387, 1786292, 2111602, 2962834, 3391838
Offset: 1

Views

Author

Labos Elemer, Dec 30 2003

Keywords

Comments

The terms are arguments introducing a sequence of 8 polynomially consecutive primes with respect to 4*x^2 - 154*x + 1523, a polynomial communicated by Rivera (2003).

Examples

			k = 1 provides {1373, 1231, 1097, 971, 853, 743, 641, 547}, an 8-chain of primes.
		

Crossrefs

Programs

  • Mathematica
    okQ[x_] := And@@PrimeQ[Table[4n^2-154n+1523, {n,x,x+7}]];
    Select[Range[ 510000], okQ] (* Harvey P. Dale, May 25 2011 *)
  • PARI
    isp(x) = isprime(4*x^2 - 154*x + 1523);
    lista(kmax) = {my(v = vector(8, k, isp(k))); for(k = 9, kmax, if(vecprod(v) == 1, print1(k - 8, ", ")); v = concat(vecextract(v, "^1"), isp(k)));} \\ Amiram Eldar, Sep 27 2024

Extensions

a(43)-a(51) from Amiram Eldar, Sep 27 2024

A090111 Values of k such that {P(k), P(k+1), ..., P(k+6)} are all prime numbers, where P(k) = 4*k^2 - 154*k + 1523.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 45, 53, 66, 67, 84, 129, 130, 131, 266, 328, 329, 1619, 1620, 2655, 2937, 7509, 7510, 18030, 29283, 29714, 29715, 37630, 42037, 44473, 45905
Offset: 1

Views

Author

Labos Elemer, Dec 30 2003

Keywords

Comments

The terms are arguments providing a sequence of 7 polynomially consecutive primes with respect to 4*x^2 - 154*x + 1523, a polynomial communicated by Rivera (2003).

Examples

			k = 1 provides {1373, 1231, 1097, 971, 853, 743, 641}, a 7-chain of primes.
		

Crossrefs

Programs

  • Mathematica
    Flatten[Position[Partition[Table[If[PrimeQ[4n^2-154n+1523],1,0],{n,46000}],7,1],{1,1,1,1,1,1,1}]] (* Harvey P. Dale, Mar 06 2015 *)
  • PARI
    isp(x) = isprime(4*x^2 - 154*x + 1523);
    lista(kmax) = {my(v = vector(7, k, isp(k))); for(k = 8, kmax, if(vecprod(v) == 1, print1(k - 7, ", ")); v = concat(vecextract(v, "^1"), isp(k)));} \\ Amiram Eldar, Sep 27 2024

A373300 Sum of successive integers in a row of length p(n) where p counts integer partitions.

Original entry on oeis.org

1, 5, 15, 45, 105, 264, 555, 1221, 2445, 4935, 9324, 17941, 32522, 59400, 104808, 184569, 315711, 540540, 902335, 1504800, 2462724, 4014513, 6444425, 10316250, 16283707, 25610886, 39841865, 61720659, 94687230, 144731706, 219282679, 330996105, 495901413, 740046425
Offset: 1

Views

Author

Olivier Gérard, May 31 2024

Keywords

Comments

The length of each row is given by A000041.
As many sequences start like the positive integers, their row sums when disposed in this shape start with the same values.
Here is a sample list by A-number order of the sequences which are sufficiently close to A000027 to have the same row sums for at least 8 terms.

Examples

			Let's put the list of integers in a triangle whose rows have length p(n), number of integer partitions of n.
.
    1 |  1
    5 |  2  3
   15 |  4  5  6
   45 |  7  8  9 10 11
  105 | 12 13 14 15 16 17 18
  264 | 19 20 21 22 23 24 25 26 27 28 29
  555 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
.
The sequence gives the row sums of this triangle.
		

Crossrefs

Cf. A000027, seen as a triangle with shape A000041.
Cf. A373301, the same principle, but starting from integer zero instead of 1.
Cf. A006003, row sums of the integers but for the linear triangle.

Programs

  • Mathematica
    Module[{s = 0},
     Table[s +=
       PartitionsP[n - 1]; (s + PartitionsP[n])*(s + PartitionsP[n] - 1)/2 -
       s*(s - 1)/2, {n, 1, 30}]]
Showing 1-4 of 4 results.