Committing an attempt at deriving an equation for finding appropriate nodes. It kinda went nowhere -- I wasn't sure where I wanted to go. This commit records this attempt -- I'm going to delete all of it and try something else.