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 A287836 #15 May 22 2025 10:21:46 %S A287836 1,11,109,1081,10721,106329,1054553,10458881,103729441,1028771337, %T A287836 10203182953,101193470929,1003620008177,9953736259545,98719500126905, %U A287836 979083577381409,9710388021269185,96306012787788969,955147011506293513,9472989143467878769,93951530216004879761 %N A287836 Number of words over the alphabet {0,1,...,10} such that no two consecutive terms have distance 5. %H A287836 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (10,1,-18). %F A287836 For n>3, a(n) = 10*a(n-1) + a(n-2) - 18*a(n-3), a(0)=1, a(1)=11, a(2)=109, a(3)=1081. %F A287836 G.f.: (1 + x - 2*x^2 - 2*x^3)/(1 - 10*x - x^2 + 18*x^3). %t A287836 LinearRecurrence[{10, 1, -18}, {1, 11, 109, 1081}, 20] %o A287836 (Python) %o A287836 def a(n): %o A287836 if n in [0,1,2,3]: %o A287836 return [1, 11, 109, 1081][n] %o A287836 return 10*a(n-1) + a(n-2) - 18*a(n-3) %Y A287836 Cf. A040000, A003945, A083318, A078057, A003946, A126358, A003946, A055099, A003947, A015448, A126473. A287804-A287819. A287825-A287839. %K A287836 nonn,easy %O A287836 0,2 %A A287836 _David Nacin_, Jun 07 2017