Anonymous user
Hofstadter Figure-Figure sequences: Difference between revisions
Hofstadter Figure-Figure sequences (view source)
Revision as of 00:43, 20 November 2012
, 11 years ago→{{header|Mathematica}}
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 returns both sequences.
2. No maximum value for n should be assumed.
|