Sum of fourth powers of the first n natural numbers | Return the sum of forth power of first n natural numbers ; Driver Code
function fourthPowerSum ( n ) { return ( ( 6 * n * n * n * n * n ) + ( 15 * n * n * n * n ) + ( 10 * n * n * n ) - n ) / 30 ; } var n = 6 ; document . write ( fourthPowerSum ( n ) ) ;