These are the correct structures. The first is the usual: A computer is both a useful and an essential device. A computer is a both useful and essential device.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.