Duncan Gregory was a great-great-grandson of James Gregory who was one of the first to investigate modern ideas of abstract algebra.
Find out more at: https://mathshistory.st-andrews.ac.uk/Biographies/Gregory_Duncan/