In 2007 he was invited by director Simon McBurney to co-write and perform in a new play with the British company Complicite. The piece was to revolve around the relationship between two pure mathematicians who lived at the turn of the 20th century, the self-taught genius, Srinivasa Ramanujan and Cambridge University don, G. H. Hardy. Bamji had been interested in this story for a few years and was working on a film script when he was approached by McBurney. The result was "A Disappearing Number", which won the Laurence Olivier Award and the Critics Circle Theatre Award for Best New Play and the Evening Standard Award for Best Play. Over the next four years, "A Disappearing Number" toured Europe, Australia, India and the United States and finished its universally acclaimed run at the Novello Theatre in London's West End.