Skip to content

Instantly share code, notes, and snippets.

@raydsameshima
Created November 16, 2022 20:22
Show Gist options
  • Save raydsameshima/82af4eddf169528faec2434419a48ad3 to your computer and use it in GitHub Desktop.
Save raydsameshima/82af4eddf169528faec2434419a48ad3 to your computer and use it in GitHub Desktop.
For Pole-Pushing lemma
sage: j = var('j')
sage: k = var('k')
sage: f(j,k) = factorial(j+k)/( factorial(j-1) * factorial(k) ) * 1/2^k
sage: F(j) = sum( f(j,k),k,0,oo)
sage: F(j)
2^(j + 1)*factorial(j)/factorial(j - 1)
sage: Fj = F(j)
sage: Fj.simplify_factorial()
2^(j + 1)*j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment