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 A151658 #10 Jul 19 2020 07:22:18 %S A151658 0,784,73200,3884640,182107936,8277726192,373396825488,16812327355840, %T A151658 756652360885056,34050346486482384,1532275508306401840, %U A151658 68952496159266606624,3102863293076011859040,139628857613659024861360,6283298684030318768507856,282748441663401954476011392 %N A151658 Number of permutations of 8 indistinguishable copies of 1..n with exactly 2 adjacent element pairs in decreasing order. %H A151658 Andrew Howroyd, <a href="/A151658/b151658.txt">Table of n, a(n) for n = 1..500</a> %H A151658 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (66,-1083,6508,-13671,11826,-3645). %F A151658 a(n) = 45^n - (8*n + 1)*9^n + 4*n*(8*n + 1). - _Andrew Howroyd_, May 06 2020 %F A151658 From _Colin Barker_, Jul 19 2020: (Start) %F A151658 G.f.: 16*x^2*(49 + 1341*x - 6093*x^2 - 6561*x^3) / ((1 - x)^3*(1 - 9*x)^2*(1 - 45*x)). %F A151658 a(n) = 66*a(n-1) - 1083*a(n-2) + 6508*a(n-3) - 13671*a(n-4) + 11826*a(n-5) - 3645*a(n-6) for n>6. %F A151658 (End) %o A151658 (PARI) a(n) = {45^n - (8*n + 1)*9^n + 4*n*(8*n + 1)} \\ _Andrew Howroyd_, May 06 2020 %o A151658 (PARI) concat(0, Vec(16*x^2*(49 + 1341*x - 6093*x^2 - 6561*x^3) / ((1 - x)^3*(1 - 9*x)^2*(1 - 45*x)) + O(x^40))) \\ _Colin Barker_, Jul 19 2020 %Y A151658 Cf. A151624. %K A151658 nonn,easy %O A151658 1,2 %A A151658 _R. H. Hardin_, May 29 2009 %E A151658 Terms a(7) and beyond from _Andrew Howroyd_, May 06 2020