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.

A086080 Number of 9's in decimal expansion of triangular number n(n+1)/2.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Jason Earls, Jul 08 2003

Keywords

Crossrefs

Cf. A000217.
Cf. 0's A086071, 1's A086072, 2's A086073, 3's A086074, 4's A086075, 5's A086076, 6's A086077, 7's A086078, 8's A086079.

Programs

  • Mathematica
    DigitCount[Accumulate[Range[0, 100]], 10, 9] (* Paolo Xausa, May 05 2024 *)
  • PARI
    A086080(n) = length(select(d -> (9==d),digits(binomial(n+1,2)))); \\ Antti Karttunen, Sep 27 2018; corrected by Georg Fischer Apr 28 2021

Extensions

Zero at the beginning inserted by Antti Karttunen, Sep 27 2018
Zero at the beginning removed by Georg Fischer, Apr 28 2021