Inflationary theory and pulsar timing investigations of primordial black holes and gravitational waves