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.

A152856 Periodic sequence [4,0,4,3,4] of period 5.

This page as a plain text file.
%I A152856 #15 Jun 02 2025 01:15:17
%S A152856 4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,
%T A152856 4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,3,4,4,0,4,
%U A152856 3,4
%N A152856 Periodic sequence [4,0,4,3,4] of period 5.
%H A152856 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,1).
%F A152856 a(n+5) = a(n) with a(0) = a(2) = a(4) = 4, a(1) = 0 and a(3) = 3
%F A152856 a(n) = 3+(1/2-3/10*5^(1/2))*cos(2*n*Pi/5)+(-1/10*(4*(5+5^(1/2))^(1/2)-(5-5^(1/2))^(1/2))*2^(1/2))*sin(2*n*Pi/5)+(3/10*5^(1/2)+1/2)*cos(4*n*Pi/5)+(-1/10*((5+5^(1/2))^(1/2)+4*(5-5^(1/2))^(1/2))*2^(1/2))*sin(4*n*Pi/5)
%F A152856 o.g.f f(z) = (4+4*z^2+3*z^3+4*z^4)/(1-z^5)
%t A152856 PadRight[{},100,{4,0,4,3,4}] (* _Harvey P. Dale_, Jun 08 2014 *)
%Y A152856 A026042
%K A152856 easy,nonn
%O A152856 0,1
%A A152856 _Richard Choulet_, Dec 14 2008