A Brooklyn high-school teacher resigned after a student told investigators she showered him with gifts, favors and oral sex.

Katherine Pauletti, 41, who taught math at Sunset Park HS, brought the youth lunch and let him take home her MacBook laptop, which was donated to the school by a charity, the boy told investigators from the Special Commissioner of Investigation for city schools.

She also invited the teen, whose age is redacted from the SCI report, to her apartment to play with her Xbox game, he told them. He frequently rode in her car, where they occasionally “made out,” he said.

Pauletti seduced him on her couch, kissing him, stroking his body, and performing oral sex on him three times, the SCI report says.

In New York, an adult who has sex with someone under age 17 can be charged with statutory rape. Pauletti has not been charged.

Pauletti admitted she engaged in oral sex with the boy “four or five times” in her apartment, but told SCI investigators that he asked her to do it.

Pauletti confided to a friend that the youth had “nice abs” and showed a shirtless photo of him in her cellphone, the report says.

She told investigators she bought him sneakers “because he told her he was poor and she felt sorry for him,” and a fit band because “he was a fitness fanatic.”

Her defense lawyer, Peter Brill, told The Post that Pauletti paid for clothes and food for other needy students as well.

“She denies consenting to having sexual contact with any student. She was a generous, caring teacher who was victimized by one of her students,” he said. “She was a victim of sexual assault.”

Pauletti, who joined Sunset Park in 2010, was removed from the classroom in November 2014 when another teacher found an intimate letter she had written to the boy. She resigned in January 2015.

Department of Education spokeswoman Devora Kaye called Pauletti’s behavior “incredibly disturbing.”

There’s more female teachers sleeping with their students than you thought: