# Combinatorial interpretation of this identity of Gauss?

Gauss came up with some bizarre identities, namely $$\sum_{n\in\mathbb{Z}}(-1)^nq^{n^2}=\prod_{k\geq 1}\frac{1-q^k}{1+q^k}.$$

How can this be interpreted combinatorially? It strikes me as being similar to many partition identities. Thanks.

-
The first one (at least the $q^{n^2}$ part) just says that the divisors of a non-square can be divided into pairs $\{a,b\}$ such that $ab=1$. The second identity says something similar. – André Nicolas Feb 11 '12 at 8:20
@André: Could you explain that a bit please? How do these pairs of divisors occur? And did you really mean $ab=1$? Modulo something? – joriki Feb 20 '12 at 5:30
@Lando: If you don't already know them, you might be interested in the Jacobi triple product and the pentagonal number theorem. – joriki Feb 20 '12 at 5:33
(Like Euler pentagonal theorem, this identity follows from Jacobi triple product.) – Grigory M Dec 1 '13 at 13:14
@GrigoryM Do you know where I can see it derived from the Jacobi triple product? – User Feb 21 at 6:24

There is a classical proof by Andrews which you can find in my survey here (section 5.5). There is also a bijective proof of a more general identity I gave in this paper (section 2.2). Enjoy!

-

Here's a combinatorial interpretation, but I have no idea how to turn it into a combinatorial proof.

$\prod(1+q^k)$ is the generating function that counts the number of partitions into distinct parts. $\prod(1-q^k)$ is the generating function that counts the excess of partitions into an even number of distinct parts over the partitions into an odd number of distinct parts. Thus

$$\sum_{n\in\mathbb{Z}}(-1)^nq^{n^2}\prod_{k\geq 1}\left(1+q^k\right)=\prod_{k\geq 1}\left(1-q^k\right)$$

considers partitions into a square and distinct parts and states that the excess of such partitions with an odd square over such partitions with an even square (where each non-zero square occurs in two colours, positive and negative) is equal to the excess of partitions into an even number of distinct parts over the partitions into an odd number of distinct parts.

-
Thanks joriki! My gut feeling is that a combinatorial proof might be quite difficult. – Kally Feb 20 '12 at 22:37
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://math.stackexchange.com/questions/108077/combinatorial-interpretation-of-this-identity-of-gauss", "fetch_time": 1467152870000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2016-26/segments/1466783397213.30/warc/CC-MAIN-20160624154957-00125-ip-10-164-35-72.ec2.internal.warc.gz", "warc_record_offset": 189322635, "warc_record_length": 17805, "token_count": 622, "char_count": 2228, "score": 3.609375, "int_score": 4, "crawl": "CC-MAIN-2016-26", "snapshot_type": "latest", "language": "en", "language_score": 0.8891745805740356, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00046-of-00064.parquet"}