Sum of square of first n even numbers | Efficient PHP method to find sum of square of first n even numbers . ; Driver code
< ? php function squareSum ( $ n ) { return 2 * $ n * ( $ n + 1 ) * ( 2 * $ n + 1 ) / 3 ; } echo squareSum ( 8 ) ; ? >