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.

A136258 a(n) = 2*a(n-1) - 2*a(n-2), with a(0)=1, a(1)=5.

This page as a plain text file.
%I A136258 #35 Jan 02 2024 08:57:32
%S A136258 1,5,8,6,-4,-20,-32,-24,16,80,128,96,-64,-320,-512,-384,256,1280,2048,
%T A136258 1536,-1024,-5120,-8192,-6144,4096,20480,32768,24576,-16384,-81920,
%U A136258 -131072,-98304,65536,327680,524288,393216,-262144,-1310720,-2097152,-1572864,1048576
%N A136258 a(n) = 2*a(n-1) - 2*a(n-2), with a(0)=1, a(1)=5.
%C A136258 Sequence opposite in sign to its second differences.
%C A136258 Binomial transform of 1, 4, -1, -4.
%C A136258 A bisection gives A135520.
%C A136258 This sequence with offset 0 is the binomial transform of (-1)^floor(n/2)*A010685(n). - _R. J. Mathar_, Feb 22 2009
%H A136258 G. C. Greubel, <a href="/A136258/b136258.txt">Table of n, a(n) for n = 0..1000</a>
%H A136258 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (2,-2).
%F A136258 a(4n+1) = 5*(-4)^n, a(4n+3) = 6*(-4)^n. - _M. F. Hasler_, May 01 2008
%F A136258 G.f.: x*(1+3*x)/(1-2*x+2*x^2). - _R. J. Mathar_, Feb 22 2009
%F A136258 From _Paul Curtz_, Apr 27 2011: (Start)
%F A136258 a(n)= -4 * a(n-4).
%F A136258 a(n)= 3*A009545(n) + A009545(n+1). (End)
%F A136258 E.g.f.: exp(x)*( cos(x) + 4*sin(x) ). - _G. C. Greubel_, Dec 02 2021
%t A136258 LinearRecurrence[{2,-2},{1,5},50] (* _Harvey P. Dale_, May 21 2014 *)
%o A136258 (PARI) vector(100,n,t=if(n<3,[t1=1,5][n],-2*t1+2*t1=t)) \\ _M. F. Hasler_, May 01 2008
%o A136258 (Magma) [n le 2 select 5^(n-1) else 2*(Self(n-1) - Self(n-2)): n in [1..41]]; // _G. C. Greubel_, Dec 02 2021
%o A136258 (Sage)
%o A136258 A136258=BinaryRecurrenceSequence(2,-2,1,5)
%o A136258 [A136258(n) for n in (0..40)] # _G. C. Greubel_, Dec 02 2021
%Y A136258 Cf. A010685, A135520.
%K A136258 sign,easy
%O A136258 0,2
%A A136258 _Paul Curtz_, Mar 18 2008
%E A136258 Edited and extended by _M. F. Hasler_, May 01 2008
%E A136258 Offset corrected _Paul Curtz_, Apr 27 2011