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 A213284 #12 Jun 13 2015 00:54:15 %S A213284 0,1,14,74,276,895,2506,6104,13224,26061,47590,81686,133244,208299, %T A213284 314146,459460,654416,910809,1242174,1663906,2193380,2850071,3655674, %U A213284 4634224,5812216,7218725,8885526,10847214,13141324,15808451,18892370,22440156,26502304 %N A213284 Number of 5-length words w over n-ary alphabet such that for every prefix z of w we have #(z,a_i) = 0 or #(z,a_i) >= #(z,a_j) for all j>i and #(z,a_i) counts the occurrences of the i-th letter in z. %H A213284 Alois P. Heinz, <a href="/A213284/b213284.txt">Table of n, a(n) for n = 0..1000</a> %H A213284 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (6,-15,20,-15,6,-1). %F A213284 a(n) = n*(94-204*n+155*n^2-45*n^3+6*n^4)/6. %F A213284 G.f.: x*(1+8*x+5*x^2+22*x^3+84*x^4)/(1-x)^6. %e A213284 a(0) = 0: no word of length 5 is possible for an empty alphabet. %e A213284 a(1) = 1: aaaaa for alphabet {a}. %e A213284 a(2) = 14: aaaaa, aaaab, aaaba, aaabb, aabaa, aabab, aabba, abaaa, abaab, ababa, baaaa, baaab, baaba, bbbbb for alphabet {a,b}. %p A213284 a:= n-> n*(94+(-204+(155+(-45+6*n)*n)*n)*n)/6: %p A213284 seq(a(n), n=0..40); %Y A213284 Row n=5 of A213276. %K A213284 nonn,easy %O A213284 0,3 %A A213284 _Alois P. Heinz_, Jun 08 2012