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 A287828 #10 May 22 2025 10:21:47 %S A287828 1,10,88,776,6844,60364,532412,4695892,41417932,365307620,3222026092, %T A287828 28418383780,250651147340,2210751960772,19498910274028, %U A287828 171981076403492,1516879160180620,13378927697789188,118002614210453804,1040787219651555556,9179779989094951372 %N A287828 Number of sequences over the alphabet {0,1,...,9} such that no two consecutive terms have distance 4. %H A287828 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (9, 0, -14). %F A287828 For n>3, a(n) = 9*a(n-1) - 14*a(n-3), a(0)=1, a(1)=10, a(2)=88, a(3)=776. %F A287828 G.f.: (1 + x - 2*x^2 - 2*x^3)/(1 - 9*x + 14*x^3). %t A287828 LinearRecurrence[{9, 0, -14}, {1, 10, 88, 776}, 30] %o A287828 (Python) %o A287828 def a(n): %o A287828 if n in [0, 1, 2, 3]: %o A287828 return [1, 10, 88, 776][n] %o A287828 return 9*a(n-1)-14*a(n-3) %Y A287828 Cf. A040000, A003945, A083318, A078057, A003946, A126358, A003946, A055099, A003947, A015448, A126473. A287804-A287819. A287825-A287831. %K A287828 nonn,easy %O A287828 0,2 %A A287828 _David Nacin_, Jun 02 2017