A144912 Unreduced numerators of digital mean, dm_num(b, n), with rows n in {2, 3, 4, ...} and columns b in {2, 3, 4, ..., n}.
0, 2, -2, -1, 0, -4, 1, 2, -2, -6, 1, 0, 0, -4, -8, 3, 2, 2, -2, -6, -10, -2, 4, -2, 0, -4, -8, -12, 0, -4, 0, 2, -2, -6, -10, -14, 0, -2, 2, -4, 0, -4, -8, -12, -16, 2, 0, 4, -2, 2, -2, -6, -10, -14, -18, 0, -2, 0, 0, -6, 0, -4, -8, -12, -16, -20
Offset: 2
Examples
Triangle begins: 0; 2, -2; -1, 0, -4; 1, 2, -2, -6; 1, 0, 0, -4, -8; 3, 2, 2, -2, -6, -10; ...
Links
- Reikku Kulon, Rows of triangle for b in [2, 142]
- Reikku Kulon, C99 source to produce the triangle
- Reikku Kulon, Triangle as 2048x2048 PNG image (zero is white, primes are black and darker grays indicate fewer prime factors)
- Reikku Kulon, Triangle as 2048x2048 PNG image, extended to b in [2, 2 * n + 1]
- Reikku Kulon, Prime band as 16384x256 PNG image (note the curves coincident with new strips of primes, as well as the second band which appears at 4096 and corresponds to the 637/638 gap in A031443)
- Reikku Kulon, Prime band as 16384x256 PNG image, starting from n = 57344
- Eric Weisstein's World of Mathematics, Redheffer Matrix
Crossrefs
Programs
-
Mathematica
dmnum[b_,n_]:=2Total[IntegerDigits[n,b]]-(b-1)Floor[Log[b,n*b]]; (* after Jinyuan Wang *) Table[dmnum[b,n],{n,2,10},{b,2,n}] (* Paolo Xausa, Sep 26 2023 *)
-
PARI
dm(b, n) = 2*sumdigits(n, b) - (b-1)*logint(n*b, b); \\ Jinyuan Wang, Jul 21 2020
Comments