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.

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.

This page as a plain text file.
%I A257115 #25 Apr 28 2015 14:12:46
%S A257115 1,3,15,15,49,483,5049,6347,144945
%N 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.
%C A257115 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
%e A257115 a(0) = 1 because 1 + 0 = 1 is squarefree.
%e A257115 a(1) = 3 because 3 + 1 = 4 is not squarefree and 3 + 2 = 5 is squarefree.
%o A257115 (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++)
%o A257115 vector(9,n,n--;a(n)) \\ _Derek Orr_, Apr 27 2015
%Y A257115 Cf. A257108, A257116.
%K A257115 nonn,fini,full
%O A257115 0,2
%A A257115 _Juri-Stepan Gerasimov_, Apr 25 2015
%E A257115 Corrected and extended by _Derek Orr_, Apr 27 2015