Calculate the gcd of elements having fibonacci frequencies
if ( hash . has ( it [ 1 ] ) ) { gcd = __gcd ( gcd , it [ 0 ] ) ; } } return gcd ; } function __gcd ( a , b ) { return ( b == 0 ? a : __gcd ( b , a % b ) ) ; }