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.

Showing 1-1 of 1 results.

A218442 a(n) = Sum_{k=0..n} floor(n/(3*k + 1)).

Original entry on oeis.org

0, 1, 2, 3, 5, 6, 7, 9, 11, 12, 14, 15, 17, 19, 21, 22, 25, 26, 27, 29, 32, 34, 36, 37, 39, 41, 43, 44, 48, 49, 51, 53, 56, 57, 59, 61, 63, 65, 67, 69, 73, 74, 76, 78, 81, 82, 84, 85, 88, 91, 94, 95, 99, 100, 101, 103, 107, 109, 111, 112, 115, 117, 119, 121, 125, 127, 129, 131, 134, 135, 139, 140, 142, 144, 146, 148, 152
Offset: 0

Views

Author

Benoit Cloitre, Oct 28 2012

Keywords

Crossrefs

Partial sums of A001817.

Programs

  • Mathematica
    d[n_] := DivisorSum[n, 1 &, Mod[#, 3] == 1 &]; d[0] = 0; Accumulate@Array[d, 100, 0] (* Amiram Eldar, Nov 25 2023 *)
  • Maxima
    A218442[n]:=sum(floor(n/(3*k+1)),k,0,n)$
    makelist(A218442[n],n,0,80); /* Martin Ettl, Oct 29 2012 */
  • PARI
    a(n)=sum(k=0,n\3,(n\(3*k+1)))
    

Formula

a(n) = n*log(n)/3 + c*n + O(n^(1/3)*log(n)), where c = gamma(1,3) - (1 - gamma)/3 = A256425 - (1 - A001620)/3 = 0.536879... (Smith and Subbarao, 1981). - Amiram Eldar, Nov 25 2023
Showing 1-1 of 1 results.