A math teacher on Long Island is accused of using money to get teenage students to send him inappropriate pictures, authorities said.