qnli question: In what treatise did negative numbers first appear? sentence: 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.