D.C. residents will soon see a ballot appear in the mailbox, giving them a chance to vote on the city’s mayor, six seats in the city’s legislature and, for the first time in four years, a new attorney general to replace Karl A. Racine (D), who is not running for a third term.