The Pathfinder source book is Ultimate Wilderness.
A few classes gain free spells that are supposed to be in addition to the number of spells known for any level. For example, one of my current characters is a Hunter, Forester archetype. The Hunter gains a number of spells per level plus the Summon Natures Ally spell whenever they qualify for it. Here is the text from d20PFSRD:
In addition to the spells gained by hunters as they gain levels, each hunter also automatically adds all summon nature’s ally spells to her list of spells known. These spells are added as soon as the hunter is capable of casting them. d20PFSRD Hunter
The Summon Natures Ally spells are added automatically but they are also counting against the total spells known causing me to not be able to select the final spell per spell level, leaving me with one spell less per spell level than I should be able to select.
I have not tested this with other classes that have similar mechanics.
Linux, OpenSuSE Leap 15.0. OpenJDK 11.0.3.