login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A134301 Periodic sequence (0, 2, 6, 2, 0). 0

%I

%S 0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,

%T 0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0,0,2,6,2,0

%N Periodic sequence (0, 2, 6, 2, 0).

%C Also: twice the partial sums of A117444. - _R. J. Mathar_, Feb 01 2008

%D Rozsa Peter, Leon Harkleroad, Mathematics is Beautiful, Math. Intellig., 12 (No. 1, 1990), 58-64.

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

%F a(n) = n(n+1) mod 10

%F O.g.f.: -2/(x-1)+(2*x^3+2*x^2-2*x-2)/(1+x+x^2+x^3+x^4). a(n)=a(n-5). - _R. J. Mathar_, Feb 01 2008

%F a(n)=(1/5)*{(n mod 5)+3*[(n+1) mod 5]+5*[(n+2) mod 5]-3*[(n+3) mod 5]-[(n+4) mod 5]}, with n>=0 - _Paolo P. Lava_, Feb 05 2008

%t PadRight[{},70,{0,2,6,2,0}] (* _Harvey P. Dale_, Mar 22 2012 *)

%o (PARI) a(n)=[0, 2, 6, 2, 0][n%5+1] \\ _Charles R Greathouse IV_, Jul 13 2016

%K nonn,easy

%O 0,2

%A _Franz Vrabec_, Jan 30 2008

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 23 08:33 EDT 2021. Contains 345395 sequences. (Running on oeis4.)