One of the Han's greatest mathematical advancements was the world's first use of negative numbers. Negative numbers first appeared in the Nine Chapters on the Mathematical Art as black counting rods, where positive numbers were represented by red counting rods. Negative numbers are used in the Bakhshali manuscript of ancient India, but its exact date of compilation is unknown. Negative numbers were also used by the Greek mathematician Diophantus in about 275 AD, but were not widely accepted in Europe until the 16th century AD.

In what treatise did negative numbers first appear?