login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A270344 Least squarefree number that has runs of exactly n nonsquarefree numbers directly preceding and succeeding it. 5
2, 17, 26, 2526, 5876126, 8061827, 8996188226, 5295909711327 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

The sequence appears to be monotone increasing, but the Mathematica implementation does not assume that.

Only a(0) and a(7) differ from A268330 in the numbers computed so far.

LINKS

Table of n, a(n) for n=0..7.

MATHEMATICA

(* computes a(n), 1 <= n <= 5 *)

sfRun[n_]:=Module[{i=n}, While[SquareFreeQ[i], i++]; i-n]

nsfRun[n_]:=Module[{i=n}, While[!SquareFreeQ[i], i++]; i-n]

a270344[{low_, high_}]:=Module[{i, next, r, s, list=Table[{}, 5]}, For[i=low, i<=high, i+=next, r=nsfRun[i]; If[r==0, next=sfRun[i], s=nsfRun[i+r+1]; If[r==s, If[list[[r]]=={}, list[[r]]={i, i+r, i+2r}]; next=2r+2, next=r+1]]]; list]

Map[#[[2]]&, a270344[{0, 10000000}]]]] (* data *)

CROSSREFS

Cf. A268330.

Sequence in context: A086322 A164275 A284646 * A300134 A171605 A018759

Adjacent sequences:  A270341 A270342 A270343 * A270345 A270346 A270347

KEYWORD

nonn,more

AUTHOR

Hartmut F. W. Hoft, Mar 15 2016

EXTENSIONS

a(7) from Giovanni Resta, Apr 11 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 25 10:26 EST 2020. Contains 338623 sequences. (Running on oeis4.)