Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A078338
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A078338 Let u(1)=u(2)=u(3)=1 and u(n)=(-1)^n*sign(u(n-1)-u(n-2))*u(n-3), then a(n)=sum(k=1,n,u(k)). +0
1
1, 2, 3, 3, 4, 5, 5, 4, 5, 5, 4, 3, 3, 2, 1, 1, 2, 1, 1, 2, 3, 3, 4, 5, 5, 4, 5, 5, 4, 3, 3, 2, 1, 1, 2, 1, 1, 2, 3, 3, 4, 5, 5, 4, 5, 5, 4, 3, 3, 2, 1, 1, 2, 1, 1, 2, 3, 3, 4, 5, 5, 4, 5, 5, 4, 3, 3, 2, 1, 1, 2, 1, 1, 2, 3, 3, 4, 5, 5, 4, 5, 5, 4, 3, 3, 2, 1, 1, 2, 1, 1, 2, 3, 3, 4, 5, 5, 4, 5, 5, 4, 3, 3, 2, 1 (list; graph; listen)
OFFSET

1,2

FORMULA

Periodic with period 18.

a(n)=(1/306)*{6*[n mod 18] + 23*[(n + 1) mod 18] - 11*[(n + 2) mod 18] + 6*[(n + 3) mod 18] + 23*[(n + 4) mod 18] + 23*[(n + 5) mod 18] + 6*[(n + 6) mod 18] + 23*[(n + 7) mod 18] + 23*[(n + 8) mod 18] + 6*[(n + 9) mod 18] - 11*[(n + 10) mod 18] + 23*[(n + 11) mod 18] + 6*[(n + 12) mod 18] - 11*[(n + 13) mod 18] - 11*[(n + 14) mod 18] + 6*[(n + 15) mod 18] - 11*[(n + 16) mod 18] - 11*[(n + 17) mod 18]}, with n>=0. - Paolo P. Lava (ppl(AT)spl.at), Jun 01 2007

CROSSREFS

Adjacent sequences: A078335 A078336 A078337 this_sequence A078339 A078340 A078341

Sequence in context: A115729 A115728 A026354 this_sequence A007306 A140858 A075458

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Nov 21 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 21 00:02 EST 2008. Contains 150810 sequences.


AT&T Labs Research