Some studies in the theory of special functions and number theory motivated by works of Srinivasa Ramanujan