The original M42 adapter has "Pentax" or "Asahi Pentax" printed on it, engraved in early versions.
It is also know as 30120 or K M42-Adapter.
Copies are on the market in large quantities, Quenox:
Quenox Adapter f
Kipon:
Kipon Adapter f
Hama and many others. Often very cheap from China.
Those share in common, that there is no rim which sits on the K-bajonett.
Then there are companies which produce both, the one's without rim and those with rim, Fotodiox is an example:
amazon.com : Fotodiox Lens Mount Adapter (Blk), M42 Lens (42mm thread Mount) Lens to Pentax (PK) Camera, fits Pentaxist DS, DS2, D, DL, DL2, K10D, K20D, K100D, K110D, K200D, K100D Super, K-5, K-7, K-30, K-r, K-x, K-m, (K-m A.K.A. K2000), K-01, Samsun?tag=pentaxforums-20&
Usually those with a rim are black. Infinity is not possible with those of course.
But they can be useful for very old M42 lenses with diameter smaller than the K-mount.
A good example is the Takumar 58/2:
Takumar 58mm F2 Reviews - M42 Screwmount Normal Primes - Pentax Lens Reviews & Lens Database
A very interesting lens but when used on the standard M42-adapter without a rim it can have 1 problem: light enters to the sensor, because the K-mount surface is not completly covered.
Some old lenses can be adjusted for infinity, I remember I did that once with a Takumar 50/4macro which was anyway out of alignement, so I adjusted infinity in the lens which was not too difficult.
My own approach is different:
On my very special M42 lenses such as the Takumar 50/1,4 8-element I have the orig. Adapter but fix.
On cheaper lenses such as the Takumar 55/1,8 a cheaper Hama Adapter, better than the modern Chinaversions, again fix.
Maybe a more expensive approach, but I want to be able to use my M42's without having to insert the adapter first into the body and then
take it out again.