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 A014285 #38 Aug 19 2024 11:58:32 %S A014285 2,8,23,51,106,184,303,455,662,952,1293,1737,2270,2872,3577,4425,5428, %T A014285 6526,7799,9219,10752,12490,14399,16535,18960,21586,24367,27363,30524, %U A014285 33914,37851,42043,46564,51290,56505,61941,67750,73944,80457,87377,94716,102318 %N A014285 a(n) = Sum_{j=1..n} j*prime(j). %C A014285 Two consecutive terms cannot both be divisible by 4. - _Tamas Sandor Nagy_, Aug 04 2024 %H A014285 Vincenzo Librandi, <a href="/A014285/b014285.txt">Table of n, a(n) for n = 1..1000</a> %F A014285 a(n) = n*A007504(n) - Sum_{k=1..n-1} A007504(k) = n*A007504(n) - A014148(n-1). - _Pontus von Brömssen_, Aug 29 2021 %t A014285 Join[{s=2},Table[s+=Prime[n]*n,{n,2,33}]] (* _Vladimir Joseph Stephan Orlovsky_, Dec 30 2010 *) %t A014285 Accumulate[Table[i*Prime[i],{i,40}]] (* _Harvey P. Dale_, Sep 10 2014 *) %o A014285 (Magma) [&+[k*NthPrime(k): k in [1..n]]: n in [1..40]]; // _Bruno Berselli_, Apr 30 2011 %o A014285 (PARI) {a(n) = sum(j=1,n, j*prime(j))}; \\ _G. C. Greubel_, Jun 18 2019 %o A014285 (Sage) [sum(j*nth_prime(j) for j in (1..n)) for n in (1..40)] # _G. C. Greubel_, Jun 18 2019 %Y A014285 Partial sums of A033286. - _Michel Marcus_, Jun 18 2019 %Y A014285 Cf. A007504, A014148. %K A014285 nonn,easy %O A014285 1,1 %A A014285 _N. J. A. Sloane_ %E A014285 Offset changed to 1 and six terms added by _Bruno Berselli_, Apr 30 2011