Tile Number to Coordinates?

Given the x y and zoom numbers of a given OSM tile, how do I calculate its north and south latitudes and west and east longitudes?

Maybe you can get some help at http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames ?

Try this one, starting at point 8. Although it’s German you should be able to figure out the maths: