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 A126394 #13 Jun 13 2015 00:52:18 %S A126394 1,7,29,125,543,2363,10287,44787,194995,848979,3696331,16093291, %T A126394 70067867,305065387,1328210699,5782837835,25177641963,109619822123, %U A126394 477268896747,2077959947307,9047137938475,39389933855019 %N A126394 Number of base 7 n-digit numbers with adjacent digits differing by two or less. %C A126394 a(base,n)=a(base-1,n)+5^(n-1) for base>=2n-1; a(base,n)=a(base-1,n)+5^(n-1)-2 when base=2n-2. %H A126394 Sergey Kitaev, Jeffrey Remmel, <a href="http://arxiv.org/abs/1304.4286">(a,b)-rectangle patterns in permutations and words</a>, arXiv:1304.4286 [math.CO], 2013. %H A126394 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (5,-2,-4,2). %F A126394 G.f.: 1 -x*(7-6*x-6*x^2+4*x^3) / ( (x-1)*(2*x^3-2*x^2-4*x+1) ). - _R. J. Mathar_, Jun 06 2013 %o A126394 (S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-2](($[i]`-$[i+1]`>2)+($[i+1]`-$[i]`>2)) %Y A126394 Cf. Base 7 differing by one or less A126361. %K A126394 nonn,base %O A126394 0,2 %A A126394 _R. H. Hardin_, Dec 28 2006