To get a sum of 3, you must roll a 1 and a 2. To get a sum of 8, you must roll a 5 and 3, or two 4's.
There are two ways of rolling a 1 and a 2, two ways of rolling a 5 and a 3, and one way to roll two 4's.
There are

possible outcomes when rolling two such solids.
So the probability of getting a sum of 3 or 8 is
Since the common difference is 6, we can assume that the sequence is arithmetic, with rule
T(n)=6n+5 where T(1)=11
T(9)=6(9)+5=59
This is a simple problem based on combinatorics which can be easily tackled by using inclusion-exclusion principle.
We are asked to find number of positive integers less than 1,000,000 that are not divisible by 6 or 4.
let n be the number of positive integers.
∴ 1≤n≤999,999
Let c₁ be the set of numbers divisible by 6 and c₂ be the set of numbers divisible by 4.
Let N(c₁) be the number of elements in set c₁ and N(c₂) be the number of elements in set c₂.
∴N(c₁) =

N(c₂) =

∴N(c₁c₂) =

∴ Number of positive integers that are not divisible by 4 or 6,
N(c₁`c₂`) = 999,999 - (166666+250000) + 41667 = 625000
Therefore, 625000 integers are not divisible by 6 or 4