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 A172285 #21 Sep 08 2022 08:45:50 %S A172285 0,2,1,6,7,20,33,74,139,288,565,1142,2271,4556,9097,18210,36403,72824, %T A172285 145629,291278,582535,1165092,2330161,4660346,9320667,18641360, %U A172285 37282693,74565414,149130799,298261628,596523225,1193046482,2386092931,4772185896 %N A172285 a(n) = (5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9. %H A172285 Vincenzo Librandi, <a href="/A172285/b172285.txt">Table of n, a(n) for n = 0..1000</a> %H A172285 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (0,3,2). %F A172285 a(n) = 3*a(n-2) + 2*a(n-3), n>2. %F A172285 a(n+1) = 2*a(n) + (-1)^n * (2+n). %F A172285 a(n) = A053088(n-1) + A001045(n), n>0. %F A172285 a(n) = A000079(n) - A053088(n). %F A172285 a(2n) = A141291(n). a(2n+1) = 2*A164044(n). %F A172285 G.f.: x*(2+x)/( (1-2*x)*(1+x)^2 ). %p A172285 A172295 := proc(n) (5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9 ; end proc: seq(A172295(n), n=0..100) ; # _R. J. Mathar_, Feb 02 2010 %t A172285 Table[(5*2^n - 5*(-1)^n - 3*n*(-1)^n)/9, {n, 0, 40}] (* _Wesley Ivan Hurt_, Aug 27 2015 *) %o A172285 (Magma) [(5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9: n in [0..40]]; // _Vincenzo Librandi_, Aug 05 2011 %o A172285 (PARI) first(m)=vector(m,i,i--;(5*2^i -5*(-1)^i - 3*i*(-1)^i ) / 9) \\ _Anders Hellström_, Aug 27 2015 %Y A172285 Cf. A000079, A001045, A053088, A141291, A164044. %K A172285 nonn,easy %O A172285 0,2 %A A172285 _Paul Curtz_, Jan 30 2010 %E A172285 Definition replaced by explicit formula; g.f. added - _R. J. Mathar_, Feb 02 2010