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 A159255 #33 Mar 20 2023 10:42:06 %S A159255 1,-1,1,1,0,0,1,1,1,0,1,1,1,2,1,1,2,1,1,3,3,2,3,3,1,1,4,6,5,5,6,4,1,1, %T A159255 5,10,11,10,11,10,5,1,1,6,15,21,21,21,21,15,6,1,1,7,21,36,42,42,42,36, %U A159255 21,7,1,1,8,28,57,78,84,84,78,57,28,8,1,1,9,36,85,135,162,168,162,135,85,36,9,1 %N A159255 Irregular triangle read by rows: row n gives expansion of (1-x+x^2)*(1+x)^n. %F A159255 G.f.: A(x,y) = (1 - y + y^2)/(1 - x*(1+y)). - _Andrew Howroyd_, Mar 03 2023 %e A159255 Row n=0 : 1, -1, 1 ; %e A159255 Row n=1 : 1, 0, 0, 1 ; %e A159255 Row n=2 : 1, 1, 0, 1, 1 ; %e A159255 Row n=3 : 1, 2, 1, 1, 2, 1 ; %e A159255 Row n=4 : 1, 3, 3, 2, 3, 3, 1 ; %e A159255 Row n=5 : 1, 5, 10, 11, 10, 11, 10, 5, 1; %e A159255 Row n=6 : 1, 6, 15, 21, 21, 21, 21, 15, 6, 1; %e A159255 ... %o A159255 (PARI) row(n)=Vecrev(polcoef((1 - y + y^2)/(1 - x*(1+y)) + O(x*x^n), n)) %o A159255 { for(n=0, 10, print(row(n))) } \\ _Andrew Howroyd_, Mar 03 2023 %Y A159255 Cf. A000079, A014626, A024483, A050407 %K A159255 sign,tabf %O A159255 0,14 %A A159255 _Philippe Deléham_, Apr 07 2009