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.

A231684 a(n) = Sum_{i=0..n} digsum_9(i), where digsum_9(i) = A053830(i).

Original entry on oeis.org

0, 1, 3, 6, 10, 15, 21, 28, 36, 37, 39, 42, 46, 51, 57, 64, 72, 81, 83, 86, 90, 95, 101, 108, 116, 125, 135, 138, 142, 147, 153, 160, 168, 177, 187, 198, 202, 207, 213, 220, 228, 237, 247, 258, 270, 275, 281, 288, 296, 305, 315, 326, 338, 351, 357, 364, 372, 381, 391, 402, 414, 427, 441, 448, 456, 465, 475, 486, 498, 511, 525, 540, 548, 557, 567, 578, 590, 603, 617, 632
Offset: 0

Views

Author

N. J. A. Sloane, Nov 13 2013

Keywords

References

  • Jean-Paul Allouche and Jeffrey Shallit, Automatic sequences, Cambridge University Press, 2003, p. 94.

Crossrefs

Programs

  • Mathematica
    a[n_] := Plus @@ IntegerDigits[n, 9]; Accumulate @ Array[a, 80, 0] (* Amiram Eldar, Dec 09 2021 *)
  • PARI
    a(n) = sum(i=0, n, sumdigits(i, 9)); \\ Michel Marcus, Sep 20 2017

Formula

a(n) ~ 2*n*log(n)/log(3). - Amiram Eldar, Dec 09 2021