The number shall be 10000x +2020 and we need it to be divisible by 77 and we need to solve it for smallest x
Or 10(1000x + 202) should be divisible by 77
As 77 is co-prime to 10 so 1000 x + 202 is divisible by 77
As 77 = 7 * 11 and 7 and 11 are co-primes
1000 x + 202 is divisible by 7 and also 11
So we need to solve
$1000x + 202 \equiv 0 \pmod 7\cdots(1)$
And
$1000x + 202 \equiv 0 \pmod {11}\cdots(2)$
Let us solve both the equations and then combine the 2
Now the1st equation is
$1000x + 202 \equiv 0 \pmod 7$
Or $6x + 6 \equiv 0 \pmod 7$
Or $x + 1 \equiv= 0 \pmod 7$
Or $x \equiv 6 \pmod 7\cdots(3)$
Now second second equation is
$1000x + 202 \equiv 0 \pmod {11}$
or $10x + 4 \equiv 0 \pmod {11}$
or $- x + 4 \equiv 0 \pmod {11}$
or $x \equiv 4 \pmod {11}\cdots(4)$
So we need to solve
$x \equiv 4 \pmod {11}\cdots(4)$
$x \equiv 6 \pmod {7}\cdots(4)$
Tthis can be solved by Chinese Remainder Theorem but as the numbers are very small we solve as below
$x + 1$ that is $5 \pmod 11$ is divisible by 7
So we see the numbers of the $5 \pmod {11}$ and see it divisible by 7
we find 16,17,38,49 and see that 49 id divisible by 7
So $x = 48$
And number is $482020$
This is the smallest number
Shorter Method
We need 1000n + 202 divisible by 77
As
$1000 \equiv -1 \pmod {77}$
We need
$202 - n$ divisible by 77
So n = $202 \pmod {77}$
or n = 48
and smallest number is $482020$