Interplay between topological insulators and superconductors