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.

A102561 a(n) = 2^floor(n/2)*((-1)^floor(n/2) + (-1)^n)/2.

This page as a plain text file.
%I A102561 #13 Sep 15 2023 01:43:10
%S A102561 1,0,0,-2,4,0,0,-8,16,0,0,-32,64,0,0,-128,256,0,0,-512,1024,0,0,-2048,
%T A102561 4096,0,0,-8192,16384,0,0,-32768,65536,0,0,-131072,262144,0,0,-524288,
%U A102561 1048576,0,0,-2097152,4194304,0,0,-8388608,16777216,0,0,-33554432,67108864,0,0,-134217728
%N A102561 a(n) = 2^floor(n/2)*((-1)^floor(n/2) + (-1)^n)/2.
%H A102561 G. C. Greubel, <a href="/A102561/b102561.txt">Table of n, a(n) for n = 0..1000</a>
%H A102561 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,4).
%F A102561 a(n) = ((-2)^floor(n/2) + (-1)^n*2^floor(n/2))/2.
%F A102561 a(n) = A102560(n)*2^floor(n/2).
%F A102561 a(n) = 4*a(n-4). - _Georg Fischer_, Sep 02 2021
%t A102561 LinearRecurrence[{0,0,0,4}, {1,0,0,-2}, 64] (* _Georg Fischer_, Sep 02 2021 *)
%o A102561 (Magma) &cat [[4^n,0,0,-2*4^n]: n in [0..20]]; // _G. C. Greubel_, Sep 15 2023
%o A102561 (SageMath) [((-2)^(n//2) + (-1)^n*2^(n//2))/2 for n in range(41)] # _G. C. Greubel_, Sep 15 2023
%Y A102561 Cf. A102560.
%K A102561 easy,sign
%O A102561 0,4
%A A102561 _Paul Barry_, Jan 14 2005