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.
%I A054541 #28 Jul 02 2025 16:01:59 %S A054541 2,1,2,2,4,2,4,2,4,6,2,6,4,2,4,6,6,2,6,4,2,6,4,6,8,4,2,4,2,4,14,4,6,2, %T A054541 10,2,6,6,4,6,6,2,10,2,4,2,12,12,4,2,4,6,2,10,6,6,6,2,6,4,2,10,14,4,2, %U A054541 4,14,6,10,2,4,6,8,6,6,4,6,8,4,8,10,2,10,2,6,4,6,8,4,2,4,12,8,4,8,4,6 %N A054541 Sum of first n terms equals n-th prime. %C A054541 Except for first term, same as A001223. %C A054541 First differences of A182986. - _Omar E. Pol_, Oct 31 2013 %C A054541 A075526 is 1 together with A001223. This is 2 together with A001223. A125266 is 3 together with A001223. - _Omar E. Pol_, Nov 01 2013 %C A054541 Convolved with A024916 gives A086718. - _Omar E. Pol_, Dec 23 2021 %t A054541 Join[{2},Differences[Prime[Range[100]]]] (* _Paolo Xausa_, Oct 25 2023 *) %o A054541 (PARI) a(n) = if (n==1, 2, prime(n) - prime(n-1)); \\ _Michel Marcus_, Oct 31 2013 %Y A054541 Partial sums give A000040. %Y A054541 Cf. A001223, A075526, A086718, A024916, A125266, A182986. %K A054541 nonn %O A054541 1,1 %A A054541 _G. L. Honaker, Jr._, Apr 09 2000 %E A054541 More terms from _James Sellers_, Apr 11 2000