High powers of irrational numbers (noch nicht übersetzt)

Problem 721

Given is the function f(a,n)=(a+a)n.
. denotes the floor function and . denotes the ceiling function.
f(5,2)=27 and f(5,5)=3935.

G(n)=na=1f(a,a2).
G(1000) mod 999999937=163861845.
Find G(5000000). Give your answer modulo 999999937.