how to start operating system on a Samsung SSD when old hard drive was broken so had to replace
If you can get it online (for example, with an Ethernet cable), all you have to do is hold command-R at startup to enter recovery mode and install the OS over the Internet. You can also use it to format the disk if needed.

http://www.techradar.com/us/how-to/computing/apple/how-to-fix-mac-boot-up-problems-in-recovery-mode-1305641