Calculate the gcd of elements having fibonacci frequencies
if ( hash . Contains ( it . Value ) ) { gcd = __gcd ( gcd , it . Key ) ; } } return gcd ; } static int __gcd ( int a , int b ) { return b == 0 ? a : __gcd ( b , a % b ) ; }