It also has a TON to due with the compression ration of the engine.
My Chevy with a pretty well built 454 will only run on 97 octane at the least, but does best with 110. Same with my dirtbike with a comp. ratio of about 12.? to 1....will only run on 110 and higher octane (really likes 120 though).
And my Jeep, with almost no compression (lets just say the engine was well worn) ran fine on 87.