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 A257287 #21 Dec 10 2023 11:08:28 %S A257287 1,12,114,978,7926,61962,472614,3541578,26190726,191733162,1392520614, %T A257287 10049975178,72163811526,516030592362,3677517616614,26134444136778, %U A257287 185292033880326,1311149786699562,9262681804120614,65346572412186378 %N A257287 a(n) = 6*7^n - 5*6^n. %C A257287 First differences of 7^n - 6^n = A016169. %C A257287 a(n-1) is the number of numbers with n digits having the largest digit equal to 6. Note that this is independent of the base b > 6. %C A257287 Equivalently, number of n-letter words over a 7-letter alphabet {a,b,c,d,e,f,g}, which must not start with the first letter of the alphabet, and in which the last letter of the alphabet must appear. %H A257287 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (13,-42). %F A257287 From _Vincenzo Librandi_, May 04 2015: (Start) %F A257287 G.f.: (1-x)/((1-6*x)*(1-7*x)). %F A257287 a(n) = 13*a(n-1) - 42*a(n-2). (End) %F A257287 E.g.f.: exp(6*x)*(6*exp(x) - 5). - _Stefano Spezia_, Nov 15 2023 %t A257287 Table[6 7^n - 5 6^n, {n, 0, 30}] (* _Vincenzo Librandi_, May 04 2015 *) %t A257287 LinearRecurrence[{13,-42},{1,12},20] (* _Harvey P. Dale_, Dec 10 2023 *) %o A257287 (PARI) a(n)=6*7^n-5*6^n %o A257287 (Magma) [6*7^n-5*6^n: n in [0..30]]; // _Vincenzo Librandi_, May 04 2015 %Y A257287 Cf. A016169. %Y A257287 See also A000225, A027649, A255463, A257285, A257286, A257287, A257288, A257289, and A088924. %K A257287 nonn,easy %O A257287 0,2 %A A257287 _M. F. Hasler_, May 03 2015