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

A240592 Number of primes between successive composite squarefree numbers (A120944).

Original entry on oeis.org

1, 2, 0, 2, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 2, 0, 0, 1, 0, 2, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 2, 1, 0, 2, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 2, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Antonio Roldán, Apr 08 2014

Keywords

Comments

First positions where the numbers n=2..5 occur are at: 2, 142, 2180230, 256857823. - Vaclav Kotesovec, Apr 17 2014

Examples

			a(4) is 2 because A120944(4)=15, A120944(5)=21, 2 primes between them: 17 and 19.
		

Crossrefs

Programs

  • PARI
    freesqrcomp(n)=issquarefree(n)&&!isprime(n)
    nextfqc(n)={local(k);k=n+1;while(!freesqrcomp(k),k+=1);return(k)}
    primesin(a,b)={local(p=a,q=0);while(p
    				
Showing 1-1 of 1 results.