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.

A189118 a(n) = smallest composite (odd) number greater than a(n-1) such that a(n)+2n is the first prime after a(n).

This page as a plain text file.
%I A189118 #14 Oct 19 2017 10:49:52
%S A189118 9,25,91,119,201,295,527,891,1133,1341,1671,2479,2973,4299,5593,8469,
%T A189118 9553,15691,16145,19621,25481,28233,31423,31909,34073,35619,43337,
%U A189118 44295,89695,107381,134519,155943,173363,175143,188037,212705,265629
%N A189118 a(n) = smallest composite (odd) number greater than a(n-1) such that a(n)+2n is the first prime after a(n).
%C A189118 More precise definition from _Don Reble_, Jul 29 2014. (Old definition was: Smallest composite odd number of first sequence of n consecutive composite odd numbers.)
%H A189118 Vincenzo Librandi, <a href="/A189118/b189118.txt">Table of n, a(n) for n = 1..70</a>
%e A189118 9 is composite but 11 is not; 25 and 27 are composite but 29 is not; 91, 93, 95 are composite but 97 is not.
%t A189118 imax=1000000;lst={};q=1;Do[k=0;Do[If[PrimeQ[n],Break[],k++],{n,m,imax+200,2}];If[k==q,q++;AppendTo[lst,m]],{m,5,imax,2}];lst
%Y A189118 Cf. A002808, A071904, A161945, A075067.
%K A189118 nonn
%O A189118 1,1
%A A189118 _Vladimir Joseph Stephan Orlovsky_, Apr 16 2011
%E A189118 Definition revised by _N. J. A. Sloane_, Jul 29 2014 at the suggestion of _Don Reble_.