def sum_gp(a,n,r):
 import math
 
 total = (a * (1 - math.pow(r, n ))) / (1- r)
 return total
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 