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.

A171382 a(n) = (2*2^n+7*(-1)^n)/3.

This page as a plain text file.
%I A171382 #9 Sep 08 2022 08:45:50
%S A171382 3,-1,5,3,13,19,45,83,173,339,685,1363,2733,5459,10925,21843,43693,
%T A171382 87379,174765,349523,699053,1398099,2796205,5592403,11184813,22369619,
%U A171382 44739245,89478483,178956973,357913939,715827885,1431655763,2863311533
%N A171382 a(n) = (2*2^n+7*(-1)^n)/3.
%C A171382 a(n) = A155980(n+2).
%C A171382 a(n) = A135351(n+3)-A135351(n+2).
%C A171382 Second binomial transform of a signed version of A005032 preceded by 3.
%C A171382 Inverse binomial transform of A008776 preceded by 3.
%H A171382 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (1,2).
%F A171382 a(n) = a(n-1)+2*a(n-2) for n > 1; a(0) = 3, a(1) = -1.
%F A171382 a(n) = 2^n-a(n-1) for n > 0; a(0) = 3.
%F A171382 G.f.: (3-4*x)/((1+x)*(1-2*x)).
%t A171382 Nest[Append[#,Last[#]+2#[[-2]]]&,{3,-1},40]  (* _Harvey P. Dale_, Apr 07 2011 *)
%o A171382 (Magma) [ (2*2^n+7*(-1)^n)/3: n in [0..32] ];
%Y A171382 Cf. A155980 (First differences of A135351), A135351 ((2^n+3-7*(-1)^n+3*0^n)/6), A005032 (7*3^n), A008776 (2*3^n).
%K A171382 sign,easy
%O A171382 0,1
%A A171382 _Klaus Brockhaus_, Dec 07 2009