What is claimed is:1. An interior permanent magnet motor comprising:a stator having a plurality of slots;a rotor rotatably disposed inside the stator;a plurality of permanent magnets having a same polarity and disposed at intervals in a circumferential direction in the rotor; anda plurality of flux barriers including a first pair of flux barriers provided on a first end of each of the plurality of permanent magnets and a second pair of flux barriers provided on a second end of each of the plurality of permanent magnets, the plurality of flux barriers being adjacent to an outer circumferential surface of the rotor,wherein the rotor has a number of magnetic poles including the plurality of permanent magnets, and a ratio of a number of the plurality of slots of the stator to the number of magnetic poles of the rotor is 3:2 or 3:4, andwherein a number of the plurality of permanent magnets is ? of the number of magnetic poles of the rotor.2. The interior permanent magnet motor of claim 1, whereina pole arc angle θm of each of the plurality of permanent magnets satisfies following formulas:θn≤θm<θm+θs/2θn=360/P θs=360/S where P is the number of magnetic poles of the rotor, and S is the number of slots of the stator.3. The interior permanent magnet motor of claim 1, whereina pole arc angle θm of each of the plurality of permanent magnets and the plurality of flux barriers satisfy following formulas:θs/2≤θib<θn θn≤θm<θob θm<θob<θm+θs θn=360/P θs=360/S where θib is an inner flux barrier angle of the permanent magnet, θob is an outer flux barrier angle of the permanent magnet, P is the number of magnetic poles of the rotor, and S is the number of slots of the stator.4. The interior permanent magnet motor of claim 3, whereinan angle θcp of a consequent pole which is one of the magnetic poles of the rotor, is formed between two adjacent permanent magnets among the plurality of permanent magnets, satisfies a following formula:θib/2<θcp<θob. 5. The interior permanent magnet motor of claim 1, whereinthe number of magnetic poles of the rotor satisfies a following formula:P=2N where N is a natural number and 2≤N≤8.6. The interior permanent magnet motor of claim 1, whereinthe rotor has a cylindrical shape, andthe plurality of flux barriers are a plurality of voids adjacent to the outer circumferential surface of the rotor and at predetermined intervals in the circumferential direction of the rotor.7. The interior permanent magnet motor of claim 1, whereinthe rotor includes a plurality of magnet insertion holes in which the plurality of permanent magnets are disposed,the first pair of flux barriers and the second pair of flux barriers of the plurality of flux barriers are provided on left and right sides of both ends of each of the plurality of magnet insertion holes, andthe magnet insertion hole is in fluid communication with the corresponding left flux barrier and the right flux barrier.8. The interior permanent magnet motor of claim 7, further comprisinga partition wall between the magnet insertion hole and the corresponding left flux barrier and the right flux barrier.9. The interior permanent magnet motor of claim 1, whereinthe stator includes a plurality of teeth protruding from an inner circumferential surface of a cylindrical yoke toward a center of the stator, andthe stator is a concentric winding type stator in which coils are wound on each of the plurality of teeth.10. The interior permanent magnet motor of claim 9, whereineach of the plurality of teeth is provided with a step portion including at least one step surface facing the rotor.11. The interior permanent magnet motor of claim 1, whereina rotation shaft is disposed at a center of the rotor, anda plurality of inner flux barriers are formed between the rotation shaft and the plurality of permanent magnets.12. The interior permanent magnet motor of claim 1, whereinthe plurality of permanent magnets are formed of ferrite or rare earth material.13. The interior permanent magnet motor of claim 1, whereineach of the plurality of permanent magnets is formed in any one of a V shape, a C shape, and a U shape.14. The interior permanent magnet motor of claim 1, whereineach of the plurality of permanent magnets is formed in a bar shape.15. An interior permanent magnet motor comprising:a stator having a plurality of slots;a rotor rotatably disposed inside the stator;a plurality of permanent magnets having a same polarity and disposed at intervals in a circumferential direction inside the rotor;a rotation shaft disposed at a center of the rotor; anda plurality of flux barriers including a pair of left flux barriers and a pair of right flux barriers provided on left and right sides of one end of each of the plurality of permanent magnets, adjacent to an outer circumferential surface of the rotor,wherein the rotor has a number of magnetic poles including the plurality of permanent magnets, and a number of the plurality of permanent magnets is ? of the number of magnetic poles of the rotor.16. The interior permanent magnet motor of claim 15, whereina pole arc angle θm of each of the plurality of permanent magnets satisfies following formulas:θn≤θm<θm+θs/2θn=360/P θs=360/S where P is the number of magnetic poles of the rotor, and S is the number of slots of the stator.17. The interior permanent magnet motor of claim 15, whereina pole arc angle θm of each of the plurality of permanent magnets and the plurality of flux barriers satisfy following formulas:θs/2≤θib<θn θn≤θm<θob θm<θob<θm+θs θn=360/P θs=360/S where θib is an inner flux barrier angle of the permanent magnet, θob is an outer flux barrier angle of the permanent magnet, P is the number of magnetic poles of the rotor, and S is the number of slots of the stator.18. The interior permanent magnet motor of claim 17, whereinan angle θcp of a consequent pole which is one of the magnetic poles of the rotor, is formed between two adjacent permanent magnets among the plurality of permanent magnets, satisfies a following formula:θib/2<θcp<θob. 19. A compressor comprising:an interior permanent magnet motor, comprising:a stator having a plurality of slots;a rotor rotatably disposed inside the stator;a plurality of permanent magnets having a same polarity and disposed at intervals in a circumferential direction in the rotor; anda plurality of flux barriers including a first pair of flux barriers provided on a first end of each of the plurality of permanent magnets and a second pair of flux barriers provided on a second end of each of the plurality of permanent magnets, the plurality of flux barriers being adjacent to an outer circumferential surface of the rotor,wherein the rotor has a number of magnetic poles including the plurality of permanent magnets, and a ratio of a number of the plurality of slots of the stator to a number of magnetic poles of the rotor is 3:2 or 3:4, andwherein a number of the plurality of permanent magnets provided in the rotor is ? of the number of magnetic poles of the rotor.20. A refrigeration cycle apparatus comprising:the compressor of claim 19.