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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A159058 A102370(n) modulo 8 . 0
0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0, 3, 6, 5, 4, 7, 2, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Simple periodic sequence .

LINKS

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

FORMULA

a(n)=a(n+8), a(0)=0, a(1)=3, a(2)=6, a(3)=5, a(4)=4, a(5)=7, a(6)=2, a(7)=1 .

a(n)=(1/4)*{(n mod 8)+[(n+1) mod 8]+3*[(n+2) mod 8]-[(n+3) mod 8]+[(n+4) mod 8]+[(n+5) mod 8]-[(n+6) mod 8]-[(n+7) mod 8]}, with n>=0 [From Paolo P. Lava, Apr 07 2009]

CROSSREFS

Cf. A102370

Sequence in context: A159066 A159057 A159067 * A102370 A106109 A175650

Adjacent sequences:  A159055 A159056 A159057 * A159059 A159060 A159061

KEYWORD

nonn,less,base

AUTHOR

Philippe DELEHAM, Apr 04 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 20 20:45 EDT 2013. Contains 225464 sequences.