A086071 Number of 0's in decimal expansion of triangular number n(n+1)/2.
1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 2, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0, 0, 1
Offset: 0
Examples
tri(4)=10, so a(4)=1 and tri(24)=300, so a(24)=2.
Links
- Paolo Xausa, Table of n, a(n) for n = 0..10000
Crossrefs
Programs
-
Mathematica
DigitCount[Accumulate[Range[0, 100]], 10, 0] (* Paolo Xausa, May 05 2024 *)