M. Michael Somos, <a href="/A010815/a010815.txt">Introduction to Ramanujan theta functions</a>
M. Michael Somos, <a href="/A010815/a010815.txt">Introduction to Ramanujan theta functions</a>
M. Somos, <a href="http://somos.crg4.comA010815/multiqa010815.htmltxt
editing
approved
Euler transform of period 12 sequence [ -1, 0, -1, -1, -1, -2, -1, -1, -1, 0, -1, -2, ...].
(PARI) {a(n) = my(A, p, e, i); if( n<0, 0, n = 8*n + 1; A = factor(n); prod( k=1, matsize(A)[1], if( [p = A[k, 1], , e ] = A[k, 2 ]; if( p==2, 0, if( p==3, I^e, if( p%24 == 1 || p%24==19, for(j=1, sqrtint(p\18), if( issquare( p - 18*j^2, &i), break)); (e+1) * (if(p%24==1, 1, -I) * kronecker( 12, i))^e, if( e%2, 0, if(p%24>12, 1, -1)^(e/2)))) )) ))}; /* Michael Somos, Sep 08 2014 */
proposed
editing
editing
proposed
G. C. Greubel, <a href="/A226860/b226860.txt">Table of n, a(n) for n = 0..2500</a>
approved
editing
editing
approved
M. Somos, <a href="http://cis.csuohio.edu/~somos.crg4.com/multiq.pdfhtml
a[ n_] := SeriesCoefficient[ EllipticTheta[ 4, 0, q^6] EllipticTheta[ 2, Pi/4, q^(1/2)] / (Sqrt[2] q^(1/8)) , , {q, 0, n}];
(PARI) {a(n) = localmy(A); if( n<0, 0, A = x * O(x^n); polcoeff( eta(x + A) * eta(x^4 + A) * eta(x^6 + A)^2 / (eta(x^2 + A) * eta(x^12 + A)), n))};
(PARI) {a(n) = localmy(A, p, e, i); if( n<0, 0, n = 8*n + 1; A = factor(n); prod( k=1, matsize(A)[1], if( p = A[k, 1], e = A[k, 2]; if( p==2, 0, if( p==3, I^e, if( p%24 == 1 || p%24==19, for(j=1, sqrtint(p\18), if( issquare( p - 18*j^2, &i), break)); (e+1) * (if(p%24==1, 1, -I) * kronecker( 12, i))^e, if( e%2, 0, if(p%24>12, 1, -1)^(e/2)))) ))))}; /* Michael Somos, Sep 08 2014 */
approved
editing
editing
approved