WELCOME! Many of our members have screwmount cameras and lenses and use the lenses on our K-mount cameras, as well. We are here to help, so keep asking questions.
Here is a link to the
Mount Adapter K at the Pentax Webstore. This adapter allows you to mount M42 screwmount lenses to K mount bodies such as the DSLR's, as you asked. Since your lenses have screw threads on the mount end and (probably) have "Takumar" printed on the front ring, you will need this adapter to mount the lens to a modern camera. Fortunately, once mounted with the adapter, you can use these lenses with some limitations and extra steps with virtually any Pentax camera body made.
If you want to do a bit of research on your camera and lenses - perhaps place them in history - please visit the
Asahi Optical Historical Club website and Paul Provencher's excellent
Asahi Pentax website dedicated to screwmount cameras and lenses.
If you are interested in the "new" bayonet mount cameras and the history of and technical data on the K-Mount, visit
Bojidar Dimitrov's K-Mount Page, an incredibly complete and up-to-date website on virtually EVERY item made by Pentax since introduction of the K "Bayonet" Mount.
That ought to hold you for a year or two

- Have Fun!