Hofstadter Figure-Figure sequences: Difference between revisions

m
m (Note added regarding redundancy.)
Line 931:
1. Create two functions named ffr and ffs that when given n return R(n) or S(n) respectively.
The instructions call for two functions.
Because S[n] is generated while computing R[n], one would normally avoid redundancy by combining R and S into a single function that
R and S into a single function that returns both sequences.
 
2. No maximum value for n should be assumed.