Hofstadter Figure-Figure sequences: Difference between revisions

m
sizing
(Don't assume a max for n.)
m (sizing)
Line 10:
 
Task:
# Create two functions named ffr and ffs that when given n return R(n) or S(n) respectively.<br><small>(Note that R(1) = 1 and S(1) = 2 to avoid off-by-one errors).</small>
# No maximum value for n should be assumed.
# Calculate and show that the first ten values of R are: 1, 3, 7, 12, 18, 26, 35, 45, 56, and 69
Anonymous user