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.

A147965 a(n) = n + 1 - A001223(n) = n - A046933(n). In words, a(n) is the difference between n+1 and the n-th gap between primes.

This page as a plain text file.
%I A147965 #14 Nov 21 2021 20:17:18
%S A147965 1,1,2,1,4,3,6,5,4,9,6,9,12,11,10,11,16,13,16,19,16,19,18,17,22,25,24,
%T A147965 27,26,17,28,27,32,25,34,31,32,35,34,35,40,33,42,41,44,35,36,45,48,47,
%U A147965 46,51,44,49,50,51,56,53,56,59
%N A147965 a(n) = n + 1 - A001223(n) = n - A046933(n). In words, a(n) is the difference between n+1 and the n-th gap between primes.
%t A147965 Module[{nn=70,prg},prg=Differences[Prime[Range[nn]]];#[[2]]-#[[1]]&/@ Thread[{prg,Range[nn-1]}]+1] (* _Harvey P. Dale_, Nov 21 2021 *)
%Y A147965 Cf. A000040, A001223, A046933, A141042.
%K A147965 easy,nonn,less
%O A147965 1,3
%A A147965 _Omar E. Pol_, Nov 17 2008
%E A147965 Definition corrected by _N. J. A. Sloane_, Nov 21 2021, at the suggestion of _Harvey P. Dale_.