Program for Centered Icosahedral Number | Function to find Centered icosahedral number ; Formula to calculate nth Centered icosahedral number and return it into main function . ; Driver Code
function centeredIcosahedralNum ( n ) { return parseInt ( ( 2 * n + 1 ) * ( 5 * n * n + 5 * n + 3 ) / 3 ) ; } let n = 10 ; document . write ( centeredIcosahedralNum ( n ) + " " ) ; n = 12 ; document . write ( centeredIcosahedralNum ( n ) ) ;