add gcf formula

thanks to @nebhale for the formula