A212970 Number of (w,x,y) with all terms in {0,...,n} and w != x and x < range(w,x,y).
0, 2, 8, 22, 44, 80, 128, 196, 280, 390, 520, 682, 868, 1092, 1344, 1640, 1968, 2346, 2760, 3230, 3740, 4312, 4928, 5612, 6344, 7150, 8008, 8946, 9940, 11020, 12160, 13392, 14688, 16082, 17544, 19110, 20748, 22496, 24320, 26260, 28280
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (2,1,-4,1,2,-1).
Programs
Formula
a(n) = 2*a(n-1) + a(n-2) - 4*a(n-3) + a(n-4) + 2*a(n-5) - a(n-6).
G.f.: f(x)/g(x), where f(x) = 2*x*(1 + 2*x + 2*x^2) and g(x) = ((1-x)^4)(1+x)^2.
a(n) = 2 * A088003(n) for n>0.
From Ayoub Saber Rguez, Mar 31 2023: (Start)
a(n) = (10*n^3 + 24*n^2 + 8*n + (6*n)*(n mod 2))/24. (End)
Extensions
Typo in name corrected by Ayoub Saber Rguez, Mar 31 2023
Comments