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!)
A134301 Periodic sequence (0, 2, 6, 2, 0). 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, 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, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Also: twice the partial sums of A117444. - R. J. Mathar, Feb 01 2008
LINKS
Rozsa Peter, Leon Harkleroad, Mathematics is Beautiful, Math. Intellig., 12 (No. 1, 1990), 58-64.
FORMULA
a(n) = n(n+1) mod 10
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
MATHEMATICA
PadRight[{}, 70, {0, 2, 6, 2, 0}] (* Harvey P. Dale, Mar 22 2012 *)
PROG
(PARI) a(n)=[0, 2, 6, 2, 0][n%5+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Sequence in context: A117214 A185972 A182918 * A168294 A363737 A004544
KEYWORD
nonn,easy
AUTHOR
Franz Vrabec, Jan 30 2008
STATUS
approved

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 April 16 07:08 EDT 2024. Contains 371698 sequences. (Running on oeis4.)