↓ 1 callersFunctionyonumber of solutions to ax + by + cz = n s.t. x, y, z >= 0 a, b, c >= 1 O(log(max(a, b, c))); paper: https://cs.uwaterloo.ca/journals/JIS/VOL23/Binner/
Number Theory/Linear Diophantine Equation Three Variables with Nonnegative Solutions.cpp:67
↓ 1 callersFunctionyoO((max number of divisors of a[i]) * n * log(max a[i])) but faster in practice
lcm(a1, a2, ... an)
= lcm(lcm(a1, ..., a[n-1]), an)
= lcm(a1, ...,
Number Theory/LCM of Fibonacci Numbers.cpp:42