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.

A092638 Absolute value of difference between counts of uninterrupted runs of single primes in A092636 and A092637.

Original entry on oeis.org

0, 2, 3, 9, 15, 50, 238, 1383, 1458, 443, 11349
Offset: 1

Views

Author

Enoch Haga, Mar 02 2004

Keywords

Examples

			a(2)=2 because in A092636 the count is 5 and in A092637 the count is 3. 5-3=2.
		

Crossrefs

Formula

a(n) = |A092636(n)-A092637(n)|.

Extensions

a(9)-a(11) from Chai Wah Wu, Mar 18 2018

A093184 Number of consecutive runs of just 1 odd nonprime congruent to 3 mod 4 below 10^n.

Original entry on oeis.org

0, 4, 76, 1120, 13428, 151342, 1642285, 17405478, 181923798, 1883330510, 19364376037, 198115964781, 2019328569227
Offset: 1

Views

Author

Enoch Haga, Mar 30 2004

Keywords

Examples

			a(3)=76 because 76 single nonprime runs occur below 10^3, each run interrupted by a nonprime congruent to 1 mod 4
		

Crossrefs

Programs

  • Mathematica
    A091113 = Select[4 Range[0, 10^4] + 1, ! PrimeQ[#] &];
    A091236 = Select[4 Range[0, 10^4] + 3, ! PrimeQ[#] &];
    lst = {}; Do[If[Length[s = Select[A091236, Between[{A091113[[i]], A091113[[i + 1]]}]]] == 1, AppendTo[lst, s]], {i, Length[A091113] - 1}]; Table[Count[Flatten[lst], x_ /; x < 10^n], {n, 4}]  (* Robert Price, May 30 2019 *)

Formula

Generate the odd nonprime sequence with nonprimes labeled 1 mod 4 or 3 mod 4. Add count of nonprimes to sequence if just 1 nonprime congruent to 3 mod 4 occurs before interruption of a nonprime congruent to 1 mod 4.

Extensions

a(9)-a(13) from Bert Dobbelaere, Dec 19 2018

A093397 Absolute value of difference between counts of uninterrupted runs of single nonprimes in A093183 and A093184.

Original entry on oeis.org

0, 1, 2, 6, 9, 31, 88, 205, 1636, 2884, 4569, 30270, 14874
Offset: 1

Views

Author

Enoch Haga, Mar 30 2004

Keywords

Examples

			a(3)=2 because in A093183 the count is 74 and in A093184 the count is 76. 76-74=2.
		

Crossrefs

Formula

Take the absolute value of differences between counts of runs of single nonprimes congruent to 1 mod 4 and 3 mod 4

Extensions

a(9)-a(13) from Robert Price, May 30 2019

A092636 Number of consecutive prime runs of 1 prime congruent to 1 mod 4 below 10^n.

Original entry on oeis.org

1, 5, 31, 208, 1555, 12465, 102704, 869060, 7540342, 66571720, 595513442
Offset: 1

Views

Author

Enoch Haga, Mar 02 2004

Keywords

Examples

			a(3)=31 because 31 single primes occur below 10^3, each interrupted in the run by a prime congruent to 3 mod 4.
		

Crossrefs

Programs

  • Mathematica
    A002144 = Select[4 Range[0, 10^4] + 1, PrimeQ[#] &];
    A002145 = Select[4 Range[0, 10^4] + 3, PrimeQ[#] &];
    lst = {}; Do[If[Length[s = Select[A002144, Between[{A002145[[i]], A002145[[i + 1]]}]]] == 1, AppendTo[lst, Last[s]]], {i, Length[A002145] - 1}]; Table[Count[lst, x_ /; x < 10^n], {n, 4}]  (* Robert Price, May 31 2019 *)
  • PARI
    a(n)=my(p=2,q=3,t);forprime(r=5,nextprime(10^n),if(q%4==1&&p%4==3&&r%4==3,t++);p=q;q=r);t \\ Charles R Greathouse IV, Sep 30 2011

Formula

Generate the prime sequence with primes labeled 1 mod 4 or 3 mod 4. Add count of primes to sequence if just one prime occurs before interruption by a prime congruent to 3 mod 4.

Extensions

a(9) from Charles R Greathouse IV, Sep 30 2011
a(10)-a(11) from Chai Wah Wu, Mar 18 2018
Showing 1-4 of 4 results.