Centered Dodecagonal Number | Function to calculate centered dodecagonal number ; Formula to calculate nth centered dodecagonal number ; Driver code
def centeredDodecagonal ( n ) : NEW_LINE INDENT return 6 * n * ( n - 1 ) + 1 ; NEW_LINE DEDENT n = 2 NEW_LINE print ( centeredDodecagonal ( n ) ) ; NEW_LINE n = 9 NEW_LINE print ( centeredDodecagonal ( n ) ) ; NEW_LINE