A vanilla siteswap sequence formula_1where formula_2 is the period of the siteswap, is valid when the cardinality of the set formula_3 (written in Set-builder notation) is equal to the period formula_2 whereformula_5To find if a pattern is valid, first create a new sequence formed by adding formula_6 to the first number, formula_7 to the second number, formula_8 to the third number and so on. Second, calculate the modulus (remainder) of each number with the period. If none of the numbers are duplicated in this final sequence, then the pattern is valid.