even if you could handle big factorials for n = 100 --> 2^100 --> 1267650600228229401496703205376
it would take forever to complete
it would take forever to complete
Code: (Select All)
For i = 1 To 1267650600228229401496703205376
s2 = 0#
For j = 1 To i
s3 = Cos(Pi * (factorial(j - 1) + 1) / j)
s2 = s2 + Fix(s3 * s3)
Next
s1 = s1 + Fix(((n / s2) ^ (1 / n)))
Next