elaborator_calculate_pattern_number: elaborator_calculate_pattern_number - adds one to the pattern for a ternary representation
Description
elaborator_calculate_pattern_number - adds one to the pattern for a ternary representation
Usage
elaborator_calculate_pattern_number(p)