4 Orange + 1 Purple, SS Atk.

Calculation Method

The greedy strategy means locking the trait as soon as it has a color that is needed. opt strategy may reroll purple SS atk if encountered early on.

Let denote the remaining currency, and denote the number of remaining orange and purple traits to get, the remaining traits rolled but not checked, and and denote the chance of obtaining orange and purple traits with currency using the greedy and opt strategies, respectively.

is the price of a roll, defined by the game as:

and are the probability of SS Atk and specific color. They are defined by the game as:

can be calculated recursively as:

is calculated similarly. Instead of locking needed traits right away, it only locks when it provides higher probability.