The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A257115 Smallest k such that none of k + 1, k + 3,... k + 2n - 1 are squarefree and all of k + 2, k + 4,... k + 2n are squarefree. 2
1, 3, 15, 15, 49, 483, 5049, 6347, 144945 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
For any x, one of x+2, x+4, ..., x+18 is divisible by 9 and thus not squarefree, so a(n) does not exist for n >= 9. - Robert Israel, Apr 27 2015
LINKS
EXAMPLE
a(0) = 1 because 1 + 0 = 1 is squarefree.
a(1) = 3 because 3 + 1 = 4 is not squarefree and 3 + 2 = 5 is squarefree.
PROG
(PARI) a(n)=k=1; while(k, c=0; for(i=1, n, if(!issquarefree(k+2*i-1)&&issquarefree(k+2*i), c++); if(issquarefree(k+2*i-1)||!issquarefree(k+2*i), c=0; break)); if(c==n, return(k)); k++)
vector(9, n, n--; a(n)) \\ Derek Orr, Apr 27 2015
CROSSREFS
Sequence in context: A289103 A289403 A289459 * A159983 A133227 A237628
KEYWORD
nonn,fini,full
AUTHOR
EXTENSIONS
Corrected and extended by Derek Orr, Apr 27 2015
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 June 8 05:45 EDT 2024. Contains 373207 sequences. (Running on oeis4.)