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