Repository navigation
A product of powers of one base, and a polynomial times k!, in closed form - #1550
Merged
Merged
Conversation
… form product(c^(p(k)), k, a, b) is c to the sum of the exponents where that sum closes, and the empty product keeps its 1: Prob 1.3.12's product(2^k, k, 0, n - 1) = 2^(n (n - 1)/2). A polynomial P(k) beside k! is summed where P(k) k! telescopes as Q(k + 1) (k + 1)! - Q(k) k! for a polynomial Q, found by one triangular solve whose constant term decides whether Q exists: Prob 2.7.17's sum(k k!, k, 1, n) = (n + 1)! - 1, while the left factorial sum(k!, k, 0, n) has no such Q and stays written. Of Sullivan and Mackey's An Introduction to Proofs. Part of #1409. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two closed forms from Sullivan and Mackey's An Introduction to Proofs.
A product of powers of one base (
MonomialProduct):product(c^(p(k)), k, a, b)iscraised to the sum of the exponents, where that sum closes. Prob 1.3.12'sproduct(2^k, k, 0, n - 1)is2^(n (n - 1)/2). The answer is piecewise overb >= a, and the empty product otherwise stays1.A polynomial times
k!(FactorialSum, new):sum(P(k) k!, k, a, b)telescopes whenP(k) k!isQ(k + 1) (k + 1)! - Q(k) k!for a polynomialQ. That holds exactly when(k + 1) Q(k + 1) - Q(k) = P(k). The equation fixesQ's coefficients from the top down, and its constant term is one extra condition that decides whetherQexists. Prob 2.7.17'ssum(k k!, k, 1, n)is(n + 1)! - 1. The left factorialsum(k!, k, 0, n)has no suchQand stays as written.Three pinned rows, in
ClosedFormProductTest,SummationProductTestandClosedFormSummationTest, usedproduct(2^k)as a product with no closed form. They now use2^sin(k).Suite: 13,335 passed on net10.0. Its one failure was the third of those rows, which passes since it was moved. Every target framework builds. Gate: passed, with allocation as the baseline says on all 19 gated benchmarks.
BREAKING-CHANGES.mdhas the entry, beside the one for a polynomial times a power.Part of #1409.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura