https://jython.pythonprogramminghelp.com/the-essential-guide-to-dynkins-formula/