This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A137361 #18 Sep 08 2022 08:45:32 %S A137361 0,0,0,0,0,0,0,1,6,21,56,126,254,480,882,1617,2992,5580,10410,19292, %T A137361 35400,64343,116128,208701,374226,670095,1198164,2138423,3808148, %U A137361 6766089,11996042,21229790,37513896,66202347,116692472,205458357,361349662,634845141,1114205988 %N A137361 a(n) = Sum_{k=0..n/2} k*binomial(n-2*k, 3*k+2). %D A137361 D. E. Knuth, The Art of Computer Programming, Vol. 4A, Section 7.1.4. %H A137361 Alois P. Heinz, <a href="/A137361/b137361.txt">Table of n, a(n) for n = 0..1000</a> %F A137361 G.f.: x^7/(x^5 + x^3 - 3*x^2 + 3*x - 1)^2. - _Alois P. Heinz_, Oct 23 2008 %p A137361 a:= n-> (Matrix(10, (i,j)-> if i=j-1 then 1 elif j=1 then [6, -15, 20, -15, 8, -7, 6, -2, 0, -1][i] else 0 fi)^n)[1,8]: %p A137361 seq(a(n), n=0..50); # _Alois P. Heinz_, Oct 23 2008 %t A137361 t[i_, j_] := If[i == j-1, 1, If[j == 1, {6, -15, 20, -15, 8, -7, 6, -2, 0, -1}[[i]] , 0]]; M = Array[t, {10, 10}]; a[n_] := MatrixPower[M, n][[1, 8]]; Table[a[n], {n, 0, 50}] (* _Jean-François Alcover_, Feb 13 2015, after _Alois P. Heinz_ *) %o A137361 (Magma) [&+[k*Binomial(n-2*k, 3*k+2): k in [0..(n div 2)]]: n in [0..40]]; // _Bruno Berselli_, Feb 13 2015 %Y A137361 Cf. A137356-A137360, A136444. %K A137361 nonn %O A137361 0,9 %A A137361 _Don Knuth_, Apr 11 2008