A hypothetical chain of processes is represented as a tree. Processes are numbered starting at 1, incremented by 1. Every process spawns a number of processes equal to its process number. The first node, processNumber 1, spawns 1 process, the second spawns 2 and so on. Given a process number, find the process number of its parent.
processNumber = 6
From the diagram, the parent of 6 is 3.
graph TD