Contributions to the theory of special functions and number theory motivated by works of Srinivasa Ramanujan