login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A236575 Number of primes between successive numbers that are not squarefree. 1
2, 0, 1, 1, 1, 1, 1, 0, 0, 0, 2, 0, 1, 2, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
It seems that a(n) <= 2. [This is true since the maximal gap between nonsquarefree numbers is 4 and 1 in every 3 consecutive numbers is divisible by 3. - Amiram Eldar, Feb 09 2021]
LINKS
EXAMPLE
A013929(n) = 4, 8, 9, 12, 16, 18, 20, ...
a(1) = 2 because there exists 2 primes between 4 and 8;
a(2) = 0 because there are no prime between 8 and 9;
a(3) = 1 because there exists 1 prime between 9 and 12.
MAPLE
sqf:={}:t:= n-> product(ithprime(k), k=1..n): for n from 1 to 400 do:if t(n) mod n <>0 then sqf:=sqf union {n} fi od:n1:=nops(sqf):
for m from 1 to n1-1 do :c:=0:i1 :=sqf[m] :i2 :=sqf[m+1] :for p from i1+1 to i2-1 do:if type(p, prime)=true then c:=c+1:else fi:od: printf(`%d, `, c):od:
MATHEMATICA
lst={}; aa={}; bb={}; Do[If[MemberQ[aa, EulerPhi[n]/n], AppendTo[bb, n], AppendTo[aa, EulerPhi[n]/n]], {n, 1, 1000}]; Do[p=0; Do[If[PrimeQ[a], p++], {a, bb[[n]]+1, bb[[n+1]]-1}]; AppendTo[lst, p], {n, 100}]; lst
CROSSREFS
Cf. A013929.
Sequence in context: A123230 A078821 A125184 * A059282 A114591 A161849
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jan 29 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 11:31 EDT 2024. Contains 371792 sequences. (Running on oeis4.)