rename statics/euler and sync b93 code with main repo
This commit is contained in:
7
www/statics/euler/Euler_Problem-057_explanation.md
Normal file
7
www/statics/euler/Euler_Problem-057_explanation.md
Normal file
@@ -0,0 +1,7 @@
|
||||
I was a bit lazy with this problem. The first thing i did was search on OEIS for the numerator and denominator sequences.
|
||||
And I found both, they are **A123335** and **A000129**.
|
||||
But still there are two mayor problems:
|
||||
- First these are recursive functions, so we need to store the last and the second last result. This is again the reason why our programs exceeds the Befunge-93 size restrictions. We need three fields for the numerator and three for the denominator (Current value | Last value | Second last value).
|
||||
- Second the numbers become big. Like *really* big. The last values get close to four hundred digits. So - again - we need to do the calculations manually *(long multiplication and addition)*
|
||||
|
||||
In the end we have a reasonable fast program with six 79*5 arrays for value storage.
|
||||
Reference in New Issue
Block a user