The numbers come from quantum error correction and the goal to build a logical qubit (error protected qubit made of many actual qubits). In the surface code (planar version of a toric code), a single logical qubit protected with a code distance d = 3 corresponds to 17 physical qubits, and a distance d = 5 corresponds to 49 physical qubits.