Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A024919
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A024919 Sum(k=1..n,(-1)^k*k*floor(n/k)). +0
3
-1, 0, -4, 1, -5, -1, -9, 4, -9, -3, -15, 5, -9, -1, -25, 4, -14, -1, -21, 9, -23, -11, -35, 17, -14, 0, -40, 0, -30, -6, -38, 23, -25, -7, -55, 10, -28, -8, -64, 14, -28, 4, -40, 20, -58, -34, -82, 34, -23, 8, -64, 6, -48, -8, -80, 24, -56, -26, -86, 34, -28, 4, -100, 25, -59 (list; graph; listen)
OFFSET

1,3

COMMENT

n - 2*[ n/2 ] + 3*[ n/3 ] - ... + m*n*[ n/n ], where m = (-1)^(n+1).

FORMULA

a(n) = 4*A024916(floor(n/2))-A024916(n). - Vladeta Jovovic (vladeta(AT)Eunet.yu), Oct 15 2002

G.f.: 1/(1-x)*Sum_{n>=1} n*x^n*(3*x^n-1)/(1-x^(2*n)). - Vladeta Jovovic (vladeta(AT)Eunet.yu), Oct 15 2002

MATHEMATICA

f[n_] := Sum[(-1)^i*i*Floor[n/i], {i, 1, n}]; Table[ f[n], {n, 1, 85}]

CROSSREFS

The zeros are A072663.

Partial sums of A002129.

Sequence in context: A107463 A101322 A029644 this_sequence A003415 A086300 A028271

Adjacent sequences: A024916 A024917 A024918 this_sequence A024920 A024921 A024922

KEYWORD

sign

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 17 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 August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research