%I #19 Jan 01 2024 11:27:01
%S 0,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,
%T 1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,
%U 5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5
%N a(n) = A001045(n) mod 10.
%C A001045(0), followed by A001045(1), A001045(2), A001045(3), A001045(4) repeating.
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,1).
%F G.f.: x*(1+x+3x^2+5x^3)/(1-x^4); e.g.f.: 2*cos(x) - sin(x) + exp(-x)/2 + 5*exp(x)/2 - 5; a(n) = 2*cos(Pi*n/2) - sin(Pi*n/2) + (-1)^n/2 + 5/2 - 5*0^n.
%t CoefficientList[Series[x (1+x+3x^2+5x^3)/(1-x^4), {x,0,150}], x] (* _Harvey P. Dale_, Mar 26 2011 *)
%Y Cf. A001045.
%K easy,nonn
%O 0,4
%A _Paul Barry_, Dec 18 2003
|