A112335 Row sums of number triangle A112334.
1, -1, -4, -7, -10, -13, -16, -19, -22, -25, -28, -31, -34, -37, -40, -43, -46, -49, -52, -55, -58, -61, -64, -67, -70, -73, -76, -79, -82, -85, -88, -91, -94, -97, -100, -103, -106, -109, -112, -115, -118, -121, -124, -127, -130, -133, -136, -139, -142, -145, -148, -151, -154, -157, -160, -163, -166, -169
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (2,-1)
Crossrefs
Cf. A016777.
Programs
-
Mathematica
LinearRecurrence[{2,-1},{1,-1,-4},60] (* Harvey P. Dale, Apr 21 2016 *)
Formula
G.f.: (1-3x-x^2)/(1-x)^2.
E.g.f.: exp(x)*(2-3x)-1.
a(n) = 2 - 3n - 0^n.