Hi, Ioannis,

for those calculations ... I suggest you to have a look here : https://www.miscel.dk/MiscEl/miscel.html
especially here : https://www.miscel.dk/MiscEl/miscelIntegerMath.html

the...