# Ramanujan’s Most Beautiful Identity

# Ramanujan’s Most Beautiful Identity

Join the DZone community and get the full member experience.

Join For Free**Hortonworks Sandbox for HDP and HDF is your chance to get started on learning, developing, testing and trying out new features. Each download comes preconfigured with interactive tutorials, sample data and developments from the Apache community.**

G. H. Hardy called the following equation Ramanujan’s “most beautiful identity.” For |*q*| < 1,

If I understood it, I might say it’s beautiful, but for now I can only say it’s mysterious. Still, I explain what I can.

The function *p* on the left side is the partition function. For a positive integer argument *n*, *p*(*n*) is the number of ways one can write *n* as the sum of a non-decreasing sequence of positive integers.

The right side of the equation is an example of a *q*-series. Strictly speaking it’s a product, not a series, but it’s the kind of thing that goes under the general heading of *q*-series.

I hardly know anything about *q*-series, and they don’t seem very motivated. However, I keep running into them in unexpected places. They seem to be a common thread running through several things I’m vaguely familiar with and would like to understand better.

As mysterious as Ramanujan’s identity is, it’s not entirely unprecedented. In the eighteenth century, Euler proved that the generating function for partition numbers is a q-product:

So in discovering his most beautiful identity (and others) Ramanujan followed in Euler’s footsteps.

Reference: An Invitation to q-series

**Hortonworks Community Connection (HCC) is an online collaboration destination for developers, DevOps, customers and partners to get answers to questions, collaborate on technical articles and share code examples from GitHub. Join the discussion.**

Published at DZone with permission of John Cook , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

## {{ parent.title || parent.header.title}}

## {{ parent.tldr }}

## {{ parent.linkDescription }}

{{ parent.urlSource.name }}