/* Esercizio n° 48; Funzionamento: The series, 1^(1) + 2^(2) + 3^(3) + ... + 10^(10) = 10405071317. Find the last ten digits of the series, 1^(1) + 2^(2) + 3^(3) + ... + 1000^(1000). Numero troppo grande. */ using System; class NomeProgramma { static void Main() { double sum1 = 0; double sum2 = 0; double sum3 = 0; for (double i = 1; i <= 1000; i++) { sum1 += Convert.ToUInt64(Math.Pow(i, i))/3; sum2 += Convert.ToUInt64(Math.Pow(i, i))/3; sum3 += Convert.ToUInt64(Math.Pow(i, i))/3; } Console.Write("Somma = {0}\n{1}\n{2}", sum1, sum2,sum3); } }