We can calculate the probability of getting 1 and 6 by summing up the probability of getting 1 to the probability of getting 6, like this:
P(A or B) = P(A) + P(B)
In this case, A and B represent two events, in the first event we get 1 as a result of rolling the die once, and in event B we get 6 as we roll one the die. Both events have the same probability, that is 1/6, then by replacing 1/6 for P(A) and P(B) we get:
P(A or B) = 1/6 + 1/6 = 2/6 = 1/3
Then, the probability of rolling and getting 1 or 6 is 1/3