Centered Dodecagonal Number | Function to calculate Centered Dodecagonal number ; Formula to calculate nth centered Dodecagonal number ; Driver Code
function centeredDodecagonal ( n ) { return 6 * n * ( n - 1 ) + 1 ; } let n = 2 ; document . write ( centeredDodecagonal ( n ) ) ; document . write ( " " ) ; n = 9 ; document . write ( centeredDodecagonal ( n ) ) ;