
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Rational numbers \(a\) and \(b\) are randomly selected from all rational numbers in the interval \([0, 3)\) that can be represented as fractions \(\frac{n}{d}\) where \(n\) and \(d\) are integers with \(1 \leq d \leq 6\). Calculate the probability that \[(\text{cos}(a\pi)+i\text{sin}(b\pi))^8\] is a real number.

Present the answer in LaTex format: \boxed{Your answer}
user