Find the smallest positive integer nnn that has at least 777 positive divisors 1=d1<d2<…<dk=n1 = d_1 < d_2 < \ldots < d_k = n1=d1<d2<…<dk=n , k≥7k \geq 7k≥7 , and for which the following equalities hold: d7=2d5+1 and d7=3d4−1d_7 = 2d_5 + 1\text{ and }d_7 = 3d_4 - 1d7=2d5+1 and d Proposed by Mykyta Kharin