You are viewing a single comment's thread. Return to all comments →
n*(n+1)*((2*n)+1)//6 is the formula for the sum of n perfext squares
Project Euler #6: Sum square difference
You are viewing a single comment's thread. Return to all comments →
n*(n+1)*((2*n)+1)//6 is the formula for the sum of n perfext squares