cp's OEIS Frontend

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.

A083581 a(n) = 8/3 - 5*(-2)^n/3.

This page as a plain text file.
%I A083581 #21 May 07 2024 03:29:23
%S A083581 1,6,-4,16,-24,56,-104,216,-424,856,-1704,3416,-6824,13656,-27304,
%T A083581 54616,-109224,218456,-436904,873816,-1747624,3495256,-6990504,
%U A083581 13981016,-27962024,55924056,-111848104,223696216,-447392424,894784856,-1789569704,3579139416,-7158278824
%N A083581 a(n) = 8/3 - 5*(-2)^n/3.
%H A083581 Vincenzo Librandi, <a href="/A083581/b083581.txt">Table of n, a(n) for n = 0..1000</a>
%H A083581 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (-1,2).
%F A083581 a(n) = (8-5(-2)^n)/3.
%F A083581 G.f.: (1+7x)/((1-x)(1+2x)).
%F A083581 E.g.f.: (8*exp(x)-5*exp(-2*x))/3.
%t A083581 Table[(8 - 5 (-2)^n)/3, {n, 0, 40}] (* or *) CoefficientList[Series[(1 + 7 x)/((1 - x) (1 + 2 x)), {x, 0, 40}], x] (* _Vincenzo Librandi_, Aug 23 2014 *)
%o A083581 (Magma) [(8-5*(-2)^n)/3: n in [0..40]]; // _Vincenzo Librandi_, Aug 23 2014
%o A083581 (PARI) a(n)=8/3-5*(-2)^n/3 \\ _Charles R Greathouse IV_, Oct 07 2015
%Y A083581 Cf. A083582.
%K A083581 easy,sign
%O A083581 0,2
%A A083581 _Paul Barry_, May 01 2003