Sum of fourth powers of the first n natural numbers | Python3 Program to find the sum of forth powers of first n natural numbers ; Return the sum of forth power of first n natural numbers ; Driver method
import math NEW_LINE def fourthPowerSum ( n ) : NEW_LINE INDENT return ( ( 6 * n * n * n * n * n ) + ( 15 * n * n * n * n ) + ( 10 * n * n * n ) - n ) / 30 NEW_LINE DEDENT n = 6 NEW_LINE print ( fourthPowerSum ( n ) ) NEW_LINE