Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126234
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126234 a(0)=0; a(n)=a(n-1)-n, if a(n-1)>2n; otherwise a(n)=a(n-1)+n. +0
1
0, 1, 3, 6, 10, 15, 9, 16, 24, 15, 25, 14, 26, 39, 25, 40, 24, 41, 23, 42, 22, 43, 65, 42, 66, 41, 67, 40, 68, 39, 69, 38, 70, 37, 71, 36, 72, 109, 71, 110, 70, 111, 69, 112, 68, 113, 67, 114, 66, 115, 65, 116, 64, 117, 63, 118, 62, 119, 61, 120, 180, 119, 181, 118, 182, 117 (list; graph; listen)
OFFSET

0,3

MATHEMATICA

s={0}; a=0; Do[a=a+If[a>2n, -n, n]; AppendTo[s, a], {n, 200}]; s

CROSSREFS

Sequence in context: A049989 A104619 A105333 this_sequence A130484 A074374 A109804

Adjacent sequences: A126231 A126232 A126233 this_sequence A126235 A126236 A126237

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)gmail.com), Mar 08 2007

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 September 7 15:23 EDT 2008. Contains 143483 sequences.


AT&T Labs Research