login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131722 Period 6: repeat [0, 10, 10, 10, 10, 10]. 1
0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10, 10, 10, 10, 10, 0, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..67.

Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,1).

FORMULA

a(n) = (1/9)*{20*(n mod 6)+5*[(n+1) mod 6]+5*[(n+2) mod 6]+5*[(n+3) mod 6]+5*[(n+4) mod 6]-10*[(n+5) mod 6]}. - Paolo P. Lava, Oct 02 2007

a(n) = 10 * sign(n mod 6). - Wesley Ivan Hurt, Mar 21 2014

From Wesley Ivan Hurt, Jun 21 2016: (Start)

G.f.: 10*x*(1+x+x^2+x^3+x^4)/(1-x^6).

a(n) = a(n-6) for n>5.

a(n) = 10 * sin(n*Pi/6)^2 * (9 + 8*cos(n*Pi/3) + 2*cos(2*n*Pi/3))/3. (End)

MAPLE

A131722:=n->10*signum(n mod 6); seq(A131722(n), n=0..100); # Wesley Ivan Hurt, Mar 21 2014

MATHEMATICA

Table[10 Sign[Mod[n, 6]], {n, 0, 100}] (* Wesley Ivan Hurt, Mar 21 2014 *)

PROG

(MAGMA) &cat [[0, 10, 10, 10, 10, 10]^^20]; // Wesley Ivan Hurt, Jun 21 2016

CROSSREFS

Sequence in context: A145279 A103708 A239051 * A072803 A163139 A269352

Adjacent sequences:  A131719 A131720 A131721 * A131723 A131724 A131725

KEYWORD

nonn,easy

AUTHOR

Paul Curtz, Sep 15 2007

STATUS

approved

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 November 18 23:00 EST 2019. Contains 329305 sequences. (Running on oeis4.)