Regarding NPK, altering the ratio isn't so much about promoting fruit and flower formation, it's about allocation of nutrients.
When starting your plants, higher N gets good size to them, all nutrients go into stem, leaves and roots. Once they flower, you don't want as much N in the soil so...