Title: Bug: maths/sumset.py docstring incorrectly references Sylvester's sequence · Issue #15013 · TheAlgorithms/Python · GitHub
Open Graph Title: Bug: maths/sumset.py docstring incorrectly references Sylvester's sequence · Issue #15013 · TheAlgorithms/Python
X Title: Bug: maths/sumset.py docstring incorrectly references Sylvester's sequence · Issue #15013 · TheAlgorithms/Python
Description: Repository commit a0b0f41 Python version (python --version) Python 3.13 Dependencies version (pip freeze) No dependencies required (this is a documentation bug) Expected behavior Expected behaviour- The docstring of the sumset() function...
Open Graph Description: Repository commit a0b0f41 Python version (python --version) Python 3.13 Dependencies version (pip freeze) No dependencies required (this is a documentation bug) Expected behavior Expected behaviour...
X Description: Repository commit a0b0f41 Python version (python --version) Python 3.13 Dependencies version (pip freeze) No dependencies required (this is a documentation bug) Expected behavior Expected behaviour...
Opengraph URL: https://github.com/TheAlgorithms/Python/issues/15013
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: maths/sumset.py docstring incorrectly references Sylvester's sequence","articleBody":"### Repository commit\n\na0b0f414ae134aa1772d33bb930e5a960f9979e8\n\n### Python version (python --version)\n\nPython 3.13\n\n### Dependencies version (pip freeze)\n\nNo dependencies required (this is a documentation bug)\n\n\n### Expected behavior\n\nExpected behaviour-\nThe docstring of the `sumset()` function in `maths/sumset.py` should correctly describe what the function returns , the sumset of two input sets (all pairwise sums).\n\nadditional information -\nThe bug is in line 8 of maths/sumset.py.\n\nCurrent (wrong):\n :param first set: a set of numbers\n :param second set: a set of numbers\n :return: the nth number in Sylvester's sequence\n\nShould be:\n :param set_a: a set of numbers\n :param set_b: a set of numbers\n :return: the sumset of set_a and set_b (all pairwise sums a + b)\n\nThis appears to be a copy-paste error from maths/sylvester_sequence.py.\n\n\n\n### Actual behavior\n\nThe docstring contains a copy-paste error. The `:return:` line says:\n\n`:return: the nth number in Sylvester's sequence`\n\nBut the function computes a sumset, not Sylvester's sequence. These are completely different mathematical concepts.\n\nAdditionally, the `:param` names (`first set`, `second set`) don't match the actual parameter names (`set_a`, `set_b`).\n","author":{"url":"https://github.com/eajajhossain","@type":"Person","name":"eajajhossain"},"datePublished":"2026-08-08T12:34:28Z","url":"https://github.com/TheAlgorithms/Python/issues/15013"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dfb846a5-ff3f-dc67-ab3a-c7e27d56602a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A55C:23725B:150991E:1CC07BD:6AFB73D4 |
| html-safe-nonce | b6c5a110ceddda7d3e6eadb225c21f02820b08fdb994254d1c530136df9205e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTVDOjIzNzI1QjoxNTA5OTFFOjFDQzA3QkQ6NkFGQjczRDQiLCJ2aXNpdG9yX2lkIjoiMjA2MzUxMjQ2MDcyMjkyNjU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab2839300e5e31be3c391df7d30feae3cd2be58fbcd9d03dc2c4f4f73aefd016 |
| hovercard-subject-tag | issue:5097514455 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheAlgorithms/Python/15013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/870ba8b7ce44430e26323c86f4431cc3d47e54b5f02d421a51f103b7c999644c/TheAlgorithms/Python/issues/15013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/870ba8b7ce44430e26323c86f4431cc3d47e54b5f02d421a51f103b7c999644c/TheAlgorithms/Python/issues/15013 |
| og:image:alt | Repository commit a0b0f41 Python version (python --version) Python 3.13 Dependencies version (pip freeze) No dependencies required (this is a documentation bug) Expected behavior Expected behaviour... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eajajhossain |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| turbo-cache-control | no-preview |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width