Jelly, 16 bytes
J:g¥’}U×ḷb§¥ƬṪS%
A less naive computation of the digital roots comes out a bit longer by having to special-case 0.
J:g¥’}U×ḷb§¥ƬṪS%
A less naive computation of the digital roots comes out a bit longer by having to special-case 0.