NOVELTY - A device includes anaerobic fermentation device (1), anaerobic-anoxic-oxic (AAO) nitrogen and phosphorus removal system (2), settling tank (3), secondary settling tank (4), sludge fermentation tank (5), dilution tank (6), water tank (7), sludge tank (8), alkaline agent tank (9), phosphate agent tank (10), magnesium agent tank (11), fermentation equipment with stirrer (12), AAO system with stirrer (13), pH meters (14,17), oxidation-reduction potential analyzer (15), dissolved oxygen analyzers (16,22), gas flow meters (18,19) and aeration devices (20,21).    USE - Device used for residual sludge alkaline fermentation in carbon source anaerobic-anoxic-oxic nitrogen and phosphorus removal.    ADVANTAGE - The device can be used together with anaerobic fermentation, anaerobic/anoxic/aerobic technology, physical sedimentation and chemical precipitation technique.    DETAILED DESCRIPTION - A device comprises anaerobic fermentation device (1), anaerobic-anoxic-oxic (AAO) nitrogen and phosphorus removal system (2), settling tank (3), secondary settling tank (4), sludge fermentation tank (5), dilution tank (6), water tank (7), sludge tank (8), alkaline agent tank (9), phosphate agent tank (10), magnesium agent tank (11), fermentation equipment with stirrer (12), AAO system with stirrer (13), first pH meter (14), oxidation-reduction potential analyzer (15), first dissolved oxygen (DO) analyzer (16), second pH meter (17), first gas flow meter (18), second gas flow meter (19), first aeration device (20), second aeration device (21), second DO analyzer (22), first nitration reflux pump (2.1), second digestive reflux pump (2.2), first sludge return pump (4.1), second sludge return pump (4.2), first fermentation sludge pump (5.1), second fermentation sludge pump (5.2), dilution pump (6.1), water supply pump (7.1), sludge pump (8.1), alkaline agent pump (9.1), phosphate agent pump (10.1) and magnesium pump (11.1).    DESCRIPTION OF DRAWING(S) - The drawing shows a schematic diagram of device.    Anaerobic fermentation device (1)    Anaerobic-anoxic-oxic nitrogen and phosphorus removal system (2)    Settling tank (3)    Secondary settling tank (4)    Sludge fermentation tank (5)    Dilution tank (6)    Water tank (7)    Sludge tank (8)    Alkaline agent tank (9)    Phosphate agent tank (10)    Magnesium agent tank (11)    Fermentation equipment with stirrer (12)    Anaerobic-anoxic-oxic system (13)    The pH meters (14,17)    Oxidation-reduction potential analyzer (15)    Dissolved oxygen analyzers (16,22)    Gas flow meters (18,19)    Aeration devices (20,21)