Sum of fourth power of first n even natural numbers | CPP Program to find the sum of fourth powers of first n even natural numbers ; calculate the sum of fourth power of first n even natural numbers ; Driven Program
#include <bits/stdc++.h> NEW_LINE using namespace std ; long long int evenPowerSum ( int n ) { return ( 8 * n * ( n + 1 ) * ( 2 * n + 1 ) * ( 3 * n * n + 3 * n - 1 ) ) / 15 ; } int main ( ) { int n = 4 ; cout << evenPowerSum ( n ) << endl ; return 0 ; }