login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131099 a(n) = n times number of divisors of n of form 3m+1 - n times number of divisors of form 3m+2. 1
1, 0, 3, 4, 0, 0, 14, 0, 9, 0, 0, 12, 26, 0, 0, 16, 0, 0, 38, 0, 42, 0, 0, 0, 25, 0, 27, 56, 0, 0, 62, 0, 0, 0, 0, 36, 74, 0, 78, 0, 0, 0, 86, 0, 0, 0, 0, 48, 147, 0, 0, 104, 0, 0, 0, 0, 114, 0, 0, 0, 122, 0, 126, 64, 0, 0, 134, 0, 0, 0, 0, 0, 146, 0, 75, 152 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Cubic AGM theta functions: a(q) (see A004016), b(q) (A005928), c(q) (A005882).
LINKS
FORMULA
Expansion of q * d/dq a(q) / 6 where a() is a cubic AGM theta function.
a(n) is multiplicative with a(3^e) = 3^e, a(p^e) = (e+1) * p^e if p == 1 (mod 3), a(p^e) = (1 + (-1)^e) / 2 * p^e if p == 2 (mod 3).
G.f.: (-1/2) * Sum_{u, v in Z} u*v * x^(u*u + u*v + v*v) = Sum_{k in Z} (3*k + 1) * x^(3*k + 1) / (1 - x^(3*k + 1))^2.
a(3*n + 2) = a(4*n + 2) = 0. a(3*n) = a(4*n) = a(n). - Michael Somos, Nov 10 2013
a(n) = n * A002324(n).
Sum_{k=1..n} a(k) ~ c * n^2, where c = Pi/(6*sqrt(3)) = 0.302299... . - Amiram Eldar, Oct 13 2022
EXAMPLE
G.f. = q + 3*q^3 + 4*q^4 + 14*q^7 + 9*q^9 + 12*q^12 + 26*q^13 + 16*q^16 + ...
MATHEMATICA
a[ n_] := If[ n < 1, 0, n Sum[ JacobiSymbol[ d, 3], {d, Divisors @n}]]; (* Michael Somos, Nov 10 2013 *)
PROG
(PARI) {a(n) = if( n<1, 0, n * sumdiv( n, d, (d%3==1) - (d%3==2)))};
(PARI) {a(n) = my(A, p, e); if( n<1, 0, A=factor(n); n * prod(k=1, matsize(A)[1], [p, e] = A[k, ]; if( p==3, 1, p%3==1, e+1, 1-e%2 )))};
CROSSREFS
Cf. A002324.
Sequence in context: A155061 A322016 A247446 * A098800 A087666 A061353
KEYWORD
nonn,mult
AUTHOR
Michael Somos, Jun 14 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 16 17:03 EDT 2024. Contains 374358 sequences. (Running on oeis4.)