The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A138279 Last digit of A136324. After 0, 1, period 4: repeat [1, 2, 5, 6] = A131800. 0

%I #19 Dec 12 2023 08:42:21

%S 0,1,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,

%T 1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,

%U 5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6

%N Last digit of A136324. After 0, 1, period 4: repeat [1, 2, 5, 6] = A131800.

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,1).

%F From _Wesley Ivan Hurt_, Jul 08 2016: (Start)

%F G.f.: (x+x^2+2*x^3+5*x^4+5*x^5)/(1-x^4).

%F a(n) = a(n-4) for n>5.

%F a(n) = (7 - I^(2*n) + (2 + 2*I)*I^(-n) + (2 - 2*I)*I^n)/2 for n>1. (End)

%p 0,1,seq(op([1, 2, 5, 6]), n=0..50); # _Wesley Ivan Hurt_, Jul 08 2016

%t PadRight[{0,1}, 120, {5,6,1,2}] (* _Harvey P. Dale_, Jul 14 2014 *)

%o (PARI) a(n)=if(n>1,[6,1,2,5][n%4+1],n)

%o (PARI) concat(0, Vec((x+x^2+2*x^3+5*x^4+5*x^5)/(1-x^4) + O(x^99))) \\ _Altug Alkan_, Jul 08 2016

%o (Magma) [0,1] cat &cat [[1, 2, 5, 6]^^30]; // _Wesley Ivan Hurt_, Jul 08 2016

%Y Cf. A131800, A136324.

%K nonn,easy,base

%O 0,4

%A _Paul Curtz_, May 06 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 9 09:08 EDT 2024. Contains 373239 sequences. (Running on oeis4.)