OFFSET
0,2
COMMENTS
Define a triangle U(n,k) with U(n,0) = n*(n+1) + 1 for n>=0 and U(r,c) = U(r-1,c-1) + U(r-1,c). The sum of the terms in row n is a(n). The first rows are 1; 3, 3; 7, 6, 7; 13, 13, 13, 13; 21, 26, 26, 26, 21; row sums are 1, 6, 20, 52, 120. - J. M. Bergot, Feb 15 2013
This triangle is now A222405. - N. J. A. Sloane, Feb 18 2013
FORMULA
a(n) = 9*2^n - 4*n - 8. - Ralf Stephan, Feb 13 2004 [proved by Christian Krause, May 14 2026]
From Colin Barker, Feb 17 2016: (Start)
a(n) = 4*a(n-1)-5*a(n-2)+2*a(n-3) for n>2.
G.f.: (1+x)^2 / ((1-x)^2*(1-2*x)). (End)
MAPLE
A027178 := proc(n)
add(A027170(n, k), k=0..n) ;
end proc:
seq(A027178(n), n=0..40) ; # R. J. Mathar, May 06 2026
MATHEMATICA
LinearRecurrence [{4, -5, 2}, {1, 6, 20}, 33] (* Hugo Pfoertner, May 16 2026 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved
