Find max {primes such that p < n^2, n = 2,3,...}, then the gap g(n) between that prime and its successor. This sequence is the sequence of differences {2n - g(n)}.

A162417

Find max {primes such that p < n^2, n = 2,3,...}, then the gap g(n) between that prime and its successor. This sequence is the sequence of differences {2n - g(n)}.

Terms

    a(0) =2a(1) =2a(2) =4a(3) =4a(4) =6a(5) =8a(6) =10a(7) =14a(8) =16a(9) =8a(10) =14a(11) =20a(12) =24a(13) =26a(14) =26a(15) =24a(16) =22a(17) =30a(18) =36a(19) =38a(20) =36a(21) =28a(22) =42a(23) =38a(24) =48a(25) =48a(26) =42a(27) =44a(28) =40a(29) =48

External references