So first goes for a public key that has x = 1?
Yes, for x = 1, we have 2 points (one y value is even = 02 and the other one is odd = 03 - here we have compressed public keys)
And OP is taking the point (x = 1 and the even y value) and is doubling it:
first * G = 02 0000000000000000000000000000000000000000000000000000000000000001 line 1
so we get:
2 * first * G = 03 C7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF37FFFD03 line 2
Then OP does it with the point (x = 2 and the even y value)
and so on ...
2 * first * G = 03 C7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF37FFFD03 line 2
second * G = 02 0000000000000000000000000000000000000000000000000000000000000002 line 3
2 * second * G = 03 33333333333333333333333333333333333333333333333333333332FFFFFF3B line 4
third * G = 02 0000000000000000000000000000000000000000000000000000000000000003 line 5
2 * third * G = 03 A7878787878787878787878787878787878787878787878787878786DFFFFD80 line 6