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 A181984 #17 Sep 08 2022 08:45:54 %S A181984 1,2,5,12,28,65,151,351,816,1897,4410,10252,23833,55405,128801,299426, %T A181984 696081,1618192,3761840,8745217,20330163,47261895,109870576,255418101, %U A181984 593775046,1380359512,3208946545,7459895657,17342153393,40315615410,93722435101 %N A181984 INVERT transform of A028310. %H A181984 G. C. Greubel, <a href="/A181984/b181984.txt">Table of n, a(n) for n = 0..1000</a> %H A181984 Miklos Bona, Rebecca Smith, <a href="https://arxiv.org/abs/1901.00026">Pattern avoidance in permutations and their squares</a>, arXiv:1901.00026 [math.CO], 2018. See H(z), Ex. 4.1. %H A181984 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3, -2, 1). %F A181984 G.f.: (1 - x + x^2) / (1 - 3*x + 2*x^2 - x^3). %F A181984 G.f.: 1 / (1 - 2*x / (1 - x / (2 + x / (1 - 2*x / (1 + x))))). %F A181984 a(n) = A034943(n + 2) = A185963(-2 - n). %F A181984 a(n) = 3*a(n-1) + 2*a(n-2) - a(n-3). %F A181984 a(n) satisfies 1 = f(a(n-2), a(n-1), a(n)) where f(u, v, w) = u^3 - 5*v^3 + w^3 + u*v * (7*v -4*u) + u*w * (3*u + 2*w) + v*w * (11*v - 6*w) - 9*u*v*w. %F A181984 a(n) = A000931(3*n + 6). - _Michael Somos_, Sep 18 2012 %e A181984 G.f. = 1 + 2*x + 5*x^2 + 12*x^3 + 28*x^4 + 65*x^5 + 151*x^6 + 351*x^7 + 816*x^8 + ... %t A181984 CoefficientList[Series[(1-x+x^2)/(1-3*x+2*x^2-x^3), {x, 0, 50}], x] (* _G. C. Greubel_, Aug 12 2018 *) %o A181984 (PARI) {a(n) = if( n<0, n = -1-n; polcoeff( (1 - x + x^2) / (1 - 2*x + 3*x^2 - x^3) + x * O(x^n), n), polcoeff( (1 - x + x^2) / (1 - 3*x + 2*x^2 - x^3) + x * O(x^n), n))} %o A181984 (PARI) x='x+O('x^50); Vec((1-x+x^2)/(1-3*x+2*x^2-x^3)) \\ _G. C. Greubel_, Aug 12 2018 %o A181984 (Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-x+x^2)/(1-3*x+2*x^2-x^3))); // _G. C. Greubel_, Aug 12 2018 %Y A181984 Cf. A000931, A028310, A034943, A185963. %K A181984 nonn %O A181984 0,2 %A A181984 _Michael Somos_, Apr 04 2012