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.

A221849 Number of primes of the form (x+1)^5 - x^5 with x <= 10^n.

Original entry on oeis.org

1, 4, 25, 149, 1101, 8489, 69978, 596022, 5179467, 45811178
Offset: 0

Views

Author

Vladimir Pletser, Jan 26 2013

Keywords

Comments

Number of primes equal to the difference of two consecutive fifth powers (x+1)^5 - x^5 = 5x(x+1)(x^2+x+1)+1 (A121616) with x <= 10^n. Values of x = A121617. Sequence of number of primes of the form (x+1)^5 - x^5 with x <= 10^n have similar characteristics to similar sequences for natural primes and cuban primes (A221794).

Programs

  • Mathematica
    fQ[n_] := PrimeQ[(n + 1)^5 - n^5]; c = k = 0; Do[ While[k < 10^n + 1, If[ fQ@ k, c++]; k++]; Print[{n, c}], {n, 9}] (* Robert G. Wilson v, Jan 31 2013 *)

Extensions

a(7) - a(9) from Robert G. Wilson v, Jan 31 2013

A221980 Number of primes of the form (x+1)^7 - x^7 with x <= 10^n.

Original entry on oeis.org

1, 6, 24, 161, 1094, 8283, 66790
Offset: 0

Views

Author

Vladimir Pletser, Feb 02 2013

Keywords

Comments

Number of primes equal to the difference of two consecutive seventh powers (x+1)^7 - x^7 = 7x(x+1)(x^2+x+1)^2+1 (A121618). Values of x = A121619 - 1. Sequence of number of primes of the form (x+1)^7 - x^7 with x <= 10^n have similar characteristics to similar sequences for natural primes, cuban primes (A221794) and primes of the form (x+1)^5 - x^5 (A221849).

Programs

A210520 Number of cuban primes < 10^(n/2).

Original entry on oeis.org

0, 0, 1, 2, 4, 6, 11, 17, 28, 42, 64, 105, 173, 267, 438, 726, 1200, 2015, 3325, 5524, 9289, 15659, 26494, 44946, 76483, 129930, 221530, 377856, 645685, 1105802, 1895983, 3254036, 5593440, 9625882, 16578830, 28590987, 49347768, 85253634
Offset: 0

Views

Author

Vladimir Pletser, Jan 26 2013

Keywords

Comments

A cuban prime has the form (x+1)^3 - x^3, which equals 3x*(x+1) + 1 (A002407).

Examples

			As the smallest cuban primes equal to the difference of two consecutive cubes p = (x+1)^3 - x^3, is 7 for x = 1, and as floor (10^(1/2)) = 3, a(0) = a(1) = 0 and a(2) = 1.
		

Crossrefs

Programs

  • Mathematica
    cnt = 0; nxt = 1; t = {0}; Do[p = 3*k*(k + 1) + 1; If[p > nxt, AppendTo[t, cnt]; nxt = nxt*Sqrt[10]]; If[PrimeQ[p], cnt++], {k, 100000}]; t (* T. D. Noe, Jan 29 2013 *)
  • PARI
    b(n)={my(s=0,k=0,t=1); while(t<=n, s+=isprime(t); k++; t += 6*k); s}
    a(n)={b(sqrtint(10^n))} \\ Andrew Howroyd, Jan 14 2020

Formula

a(2*n) = A113478(n). - Andrew Howroyd, Jan 14 2020

Extensions

a(31)-a(37) from Andrew Howroyd, Jan 14 2020

A221986 Number of primes of the form (x+1)^11 - x^11 with x <= 10^n.

Original entry on oeis.org

0, 3, 9, 46, 479, 3711, 30830
Offset: 0

Views

Author

Vladimir Pletser, Feb 02 2013

Keywords

Comments

Number of primes equal to the difference of two consecutive eleventh powers (x+1)^11 - x^11 = 11x(x+1)(x^2+x+1)(x(x+1)(x^2+x+1)(x^2+x+3)+1) +1 (A189055). Values of x = A211184. Sequence of number of primes of the form (x+1)^7 - x^7 with x <= 10^n have similar characteristics to similar sequences for natural primes, cuban primes (A221794) and primes of the form (x+1)^p - x^p for p = 5 (A221849) and p = 7 (A221980).

A336451 Primes of form x^3 - (x + 1)^3 + 3*z^3 or -x^3 + (x + 1)^3 - 3*z^3, with x,z >= 0.

Original entry on oeis.org

2, 5, 7, 13, 17, 19, 23, 29, 31, 37, 53, 59, 61, 67, 73, 79, 101, 103, 107, 113, 127, 131, 139, 149, 173, 179, 181, 191, 193, 199, 251, 263, 269, 271, 277, 307, 317, 331, 367, 373, 379, 383, 389, 397, 431, 439, 479, 503, 509, 521, 523, 547, 557, 563, 569, 571
Offset: 1

Views

Author

XU Pingya, Aug 31 2020

Keywords

Comments

For z <= 10^6, no other prime have this form in the first 105 primes.

Examples

			0^3 - 1^3 + 3*2^3 = 23, 23 is a term.
-3^3 + 4^3 - 3*0^3 = -4^3 + 5^3 - 3*2^3 = -52^3 + 53^3 - 3*14^3 = 37, 37 is a term.
		

Crossrefs

Programs

  • Mathematica
    p1 = Select[Prime[Range[105]], IntegerQ[(# - 1)/3] &];
    p2 = Select[Prime[Range[105]], IntegerQ[(# + 1)/3] &];
    n1 = Length@p1; n2 = Length@p2;
    r1 = (p1 - 1)/3; r2 = (p2 + 1)/3;
    t = {};
    Do[x = (z^3 + r1[[n]] + 1/4)^(1/2) - 1/2;
     If[IntegerQ[x], AppendTo[t, -x^3 + (x + 1)^3 - 3z^3]], {n, 1,
      n1}, {z, 0, 270}]
    Do[x = (z^3 - r2[[n]] + 1/4)^(1/2) - 1/2;
     If[IntegerQ[x], AppendTo[t, x^3 - (x + 1)^3 + 3z^3]], {n, 1,
      n2}, {z, 0, 170}]
    Union@t
Showing 1-5 of 5 results.