A261884 Expansion of (a(q) - a(q^2) - 2*a(q^3) + 2*a(q^6)) / 6 in powers of q where a() is a cubic AGM function.
1, -1, -1, 1, 0, 1, 2, -1, -1, 0, 0, -1, 2, -2, 0, 1, 0, 1, 2, 0, -2, 0, 0, 1, 1, -2, -1, 2, 0, 0, 2, -1, 0, 0, 0, -1, 2, -2, -2, 0, 0, 2, 2, 0, 0, 0, 0, -1, 3, -1, 0, 2, 0, 1, 0, -2, -2, 0, 0, 0, 2, -2, -2, 1, 0, 0, 2, 0, 0, 0, 0, 1, 2, -2, -1, 2, 0, 2, 2, 0
Offset: 1
Examples
G.f. = x - x^2 - x^3 + x^4 + x^6 + 2*x^7 - x^8 - x^9 - x^12 + 2*x^13 + ...
Links
- G. C. Greubel, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Mathematica
A004016[q_] := (QPochhammer[q]^3 + 9*q*QPochhammer[q^9]^3)/ QPochhammer[q^3]; A261884[n_] := SeriesCoefficient[(A004016[q] - A004016[q^2] - 2*A004016[q^3] + 2*A004016[q^6])/6, {q, 0, n}]; Table[A261884[n], {n, 1, 50}] (* G. C. Greubel, Sep 24 2017 *)
-
PARI
{a(n) = my(A, p, e); if( n<1, 0, A = factor(n); prod( k=1, matsize(A)[1], [p, e] = A[k, ]; if(p==2, (-1)^e, p==3, -1, p%6==1, e+1, 1-e%2)))};
-
PARI
{a(n) = my(A); if( n<1, 0, n--; A = x * O(x^n); polcoeff( eta(x^9 + A)^3 / eta(x^3 + A) - x * eta(x^2 + A)^2 * eta(x^3 + A) * eta(x^18 + A)^4 / (eta(x + A) * eta(x^6 + A)^2 * eta(x^9 + A)^2), n))};
Formula
Moebius transform is period 18 sequence [ 1, -2, -2, 2, -1, 4, 1, -2, 0, 2, -1, -4, 1, -2, 2, 2, -1, 0, ...].
a(n) is multiplicative with a(2^e) = (-1)^e, a(3^e) = -1 if e>0, a(p^e) = e+1 if p == 1 (mod 6), a(p^e) = (1 + (-1)^e)/2 if p == 5 (mod 6).
G.f.: Sum_{k>0} F(x^(6*k - 5)) - F(x^(6*k - 3)) + F(x^(6*k - 1)) where F(x) := x / (1 + x + x^2).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Pi/(18*sqrt(3)) = 0.100766631346... . - Amiram Eldar, Nov 23 2023
Comments