1, 2, -1, 1, 3, -1, 2, 6, -8, 3, 2, 10, 10, -10, 3, 4, 20, 10, -50, 46, -15, 17, 119, 245, 35, -217, 161, -45, 34, 238, 406, -350, -644, 1372, -1056, 315, 62, 558, 1722, 1638, -1092, -1008, 1828, -1188, 315, 124, 1116, 3138, 1134, -5838, 1134, 9452, -14724, 10134, -2835
Offset: 2
Triangle begins (r is the number of row or the number of polynomial; coefficients of b^k, k=r-2-i, i=0,1,..., r-2)
r/i.|..0......1......2.....3.....4......5......6.....7
======================================================
.2..|..1
.3..|..2.....-1
.4..|..1......3.....-1
.5..|..2......6.....-8.....3
.6..|..2.....10.....10...-10.....3
.7..|..4.....20.....10...-50....46....-15
.8..|.17....119....245....35..-217....161....-45
.9..|.34....238....406..-350..-644...1372..-1056....315
For example, if r=4, the polynomial
P_4(b)=b*(b^2+3*b-1)/A156769(4/2)=b/3*(b^2+3*b-1) (b==0 mod 2)
gives difference between multiples of b+1 with even and odd digit sums in base b in interval [0, b^4). Note also that P_2(b)=b. Therefore, setting in the formula n=r=3, again for P_4(b) we have P_4(b)=b*C(b+1,2)-C(b,3)=b/3*(b^2+3*b-1).
Comments