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 A014284 #51 Sep 08 2022 08:44:39 %S A014284 1,3,6,11,18,29,42,59,78,101,130,161,198,239,282,329,382,441,502,569, %T A014284 640,713,792,875,964,1061,1162,1265,1372,1481,1594,1721,1852,1989, %U A014284 2128,2277,2428,2585,2748,2915,3088,3267,3448,3639,3832,4029 %N A014284 Partial sums of primes, if 1 is regarded as a prime (as it was until quite recently, see A008578). %C A014284 Lexicographically earliest sequence whose first differences are an increasing sequence of primes. Complement of A175969. - _Jaroslav Krizek_, Oct 31 2010 %C A014284 A175944(a(n)) = A018252(n). - _Reinhard Zumkeller_, Mar 18 2011 %C A014284 Partial sums of noncomposite numbers (A008578). - _Omar E. Pol_, Aug 09 2012 %H A014284 Vincenzo Librandi, <a href="/A014284/b014284.txt">Table of n, a(n) for n = 1..1000</a> %F A014284 a(n) = Sum_{k <= n} [(A158611(k + 1)) * (A000012(n - k + 1))] = Sum_{k <= n} [(A158611(k + 1)) * (A000012(k))] = Sum_{k <= n} [(A008578(k)) * (A000012(n - k + 1))] = Sum_{k <= n} [(A008578(k)) * (A000012(k))] for n, k >= 1. - _Jaroslav Krizek_, Aug 05 2009 %F A014284 a(n + 1) = A007504(n) + 1. a(n + 1) - a(n) = A000040(n) = n-th primes. - _Jaroslav Krizek_, Aug 19 2009 %F A014284 a(n) = a(n-1) + prime(n-1), with a(1)=1. - _Vincenzo Librandi_, Jul 27 2013 %F A014284 G.f: (x*(1+b(x)))/(1-x) = c(x)/(1-x), where b(x) and c(x) are respectively the g.f. of A000040 and A008578. - _Mario C. Enriquez_, Dec 10 2016 %e A014284 a(7) = 42 because the first six primes (2, 3, 5, 7, 11, 13) add up to 41, and 1 + 41 = 42. %p A014284 A014284 := proc(n) %p A014284 add(A008578(i),i=1..n) ; %p A014284 end proc: %p A014284 seq(A014284(n),n=1..60) ; # _R. J. Mathar_, Mar 05 2017 %t A014284 Join[{1}, Table[1+Sum[Prime[j], {j,1,n}], {n,1,50}]] (* _Vladimir Joseph Stephan Orlovsky_, Sep 25 2009, modified by _G. C. Greubel_, Jun 18 2019 *) %t A014284 Accumulate[Join[{1}, Prime[Range[45]]]] (* _Alonso del Arte_, Oct 09 2012 *) %o A014284 (Haskell) %o A014284 a014284 n = a014284_list !! n %o A014284 a014284_list = scanl1 (+) a008578_list %o A014284 -- _Reinhard Zumkeller_, Mar 26 2015 %o A014284 (PARI) concat([1], vector(50, n, 1 + sum(j=1,n, prime(j)) )) \\ _G. C. Greubel_, Jun 18 2019 %o A014284 (Magma) [1] cat [1 + (&+[NthPrime(j): j in [1..n]]): n in [1..50]]; // _G. C. Greubel_, Jun 18 2019 %o A014284 (Sage) [1]+[1 + sum(nth_prime(j) for j in (1..n)) for n in (1..50)] # _G. C. Greubel_, Jun 18 2019 %Y A014284 Cf. A007504. %Y A014284 Equals A036439(n) - 1. %Y A014284 Cf. A175965, A175966, A175967, A175968, A175969, A051349, A175970. - _Jaroslav Krizek_, Oct 31 2010 %Y A014284 Cf. A008578. %K A014284 nonn,easy %O A014284 1,2 %A A014284 Deepan Majmudar (dmajmuda(AT)esq.com) %E A014284 Correction for Aug 2009 change of offset in A158611 and A008578 by _Jaroslav Krizek_, Jan 27 2010