Skip to content

Instantly share code, notes, and snippets.

@dmwit
Created September 22, 2019 01:42
Show Gist options
  • Save dmwit/c5f7de411db9295e8628957494e93b96 to your computer and use it in GitHub Desktop.
Save dmwit/c5f7de411db9295e8628957494e93b96 to your computer and use it in GitHub Desktop.
c (1, 1) = 1
c (2, 2) = 1
c (i, 1) | i > 2 = -(a ! (i-2, 1))
c (i, j) | i == j = 2 * (a ! (i-1, j-1))
| i > j && j > 1 = 2 * (a ! (i-1, j-1)) - (a ! (i-2, j-1))
| otherwise = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment