Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A002129
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A002129 Generalized sum of divisors function: excess of sum of odd divisors of n over sum of even divisors of n.
(Formerly M3236 N1307)
+0
11
1, -1, 4, -5, 6, -4, 8, -13, 13, -6, 12, -20, 14, -8, 24, -29, 18, -13, 20, -30, 32, -12, 24, -52, 31, -14, 40, -40, 30, -24, 32, -61, 48, -18, 48, -65, 38, -20, 56, -78, 42, -32, 44, -60, 78, -24, 48, -116, 57, -31, 72, -70, 54, -40, 72, -104, 80, -30, 60, -120, 62, -32, 104, -125 (list; graph; listen)
OFFSET

1,3

COMMENT

Coefficients in expansion of Sum_{n >= 1} x^n/(1+x^n)^2 = Sum_{n >= 1} (-1)^(n-1)*n*x^n/(1-x^n).

REFERENCES

L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 162, #16, (6), 3rd formula.

S. R. Finch, Mathematical Constants, Cambridge, 2003, pp. 259-262.

P. A. MacMahon, Divisors of numbers and their continuations in the theory of partitions, Proc. London Math. Soc., (2) 19 (1919), 75-113; Coll. Papers II, pp. 303-341.

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

S. R. Finch, The "One-Ninth" Constant

FORMULA

Multiplicative with a(p^e) = 3-2^(e+1) if p = 2; (p^(e+1)-1)/(p-1) if p > 2. - David W. Wilson, Sep 01, 2001

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

L.g.f.: Sum_{n>=1} a(n)*x^n/n = log[ Sum_{n>=0} x^(n(n+1)/2) ], the log of the g.f. of A010054. - Paul D. Hanna (pauldhanna(AT)juno.com), Jun 28 2008

EXAMPLE

a(28) = 40 because the sum of the even divisors of 28 (2, 4, 14 and 28) = 48 and the sum of the odd divisors of 28 (1 and 7) = 8; their absolute difference being 40.

MATHEMATICA

f[ n_Integer ] := (c = Divisors[ n ]; Abs[ Apply[ Plus, Select[ c, EvenQ[ # ] & ] ] - Apply[ Plus, Select[ c, OddQ[ # ] & ] ] ] ); Table[ f[ n ], {n, 1, 75} ]

PROGRAM

(PARI) a(n)=if(n<1, 0, -sumdiv(n, d, (-1)^d*d))

(PARI) {a(n)=n*polcoeff(log(sum(k=0, (sqrtint(8*n+1)-1)\2, x^(k*(k+1)/2))+x*O(x^n)), n)} - Paul D. Hanna (pauldhanna(AT)juno.com), Jun 28 2008

CROSSREFS

A diagonal of A060044.

a(2^n)=-A036563(n+1). a(3^n)=A003462(n+1).

First differences of -A024919(n).

Cf. A010054.

Sequence in context: A096291 A016719 A090370 this_sequence A113184 A136004 A134299

Adjacent sequences: A002126 A002127 A002128 this_sequence A002130 A002131 A002132

KEYWORD

sign,easy,nice,mult

AUTHOR

njas

EXTENSIONS

Better description and more terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Dec 14 2000. More terms from njas, Mar 19, 2001.

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