Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A108174
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A108174 Partial sums of the positive integers n according to the rule: if n is square then subtract n else add n. +0
1
0, -1, 1, 4, 0, 5, 11, 18, 26, 17, 27, 38, 50, 63, 77, 92, 76, 93, 111, 130, 150, 171, 193, 216, 240, 215, 241, 268, 296, 325, 355, 386, 418, 451, 485, 520, 484, 521, 559, 598, 638, 679, 721, 764, 808, 853, 899, 946, 994, 945, 995, 1046, 1098, 1151, 1205, 1260, 1316, 1373, 1431, 1490, 1550, 1611, 1673, 1736, 1672 (list; graph; listen)
OFFSET

0,4

PROGRAM

(PARI) g(n) = s=0; for(x=0, n, if(issquare(x), s-=x, s+=x); print1(s", "))

CROSSREFS

Sequence in context: A102293 A021965 A064520 this_sequence A134530 A126813 A056141

Adjacent sequences: A108171 A108172 A108173 this_sequence A108175 A108176 A108177

KEYWORD

easy,sign

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Jun 13 2005

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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research