This part is a kind of semiconductor called 2N3731.
Function of this product has Trans GP BJT NPN 40V 1.5A 3-Pin TO-39.
Manufacturers : New Jersey Semiconductor
Image and pinout :

Some of the text within the PDF file :
[ ... ]
2N3731 PDF Datasheet Download
