{"id":14995722,"url":"https://github.com/bumbii/code","last_synced_at":"2026-02-05T16:06:21.903Z","repository":{"id":209820001,"uuid":"546553516","full_name":"bumbii/code","owner":"bumbii","description":"Coding exercises in multiple programming languages (Python, Mojo...)","archived":false,"fork":false,"pushed_at":"2024-04-10T14:26:54.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T09:32:02.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bumbii.tech","language":"Mojo","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bumbii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-06T09:04:01.000Z","updated_at":"2024-04-07T05:18:33.000Z","dependencies_parsed_at":"2024-01-31T09:51:05.197Z","dependency_job_id":"ca5adc35-12bd-42d2-8cba-6b70927e2c70","html_url":"https://github.com/bumbii/code","commit_stats":null,"previous_names":["bumbii/code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bumbii/code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumbii%2Fcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumbii%2Fcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumbii%2Fcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumbii%2Fcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumbii","download_url":"https://codeload.github.com/bumbii/code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumbii%2Fcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276940127,"owners_count":25732245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T16:19:46.160Z","updated_at":"2025-09-25T15:31:19.492Z","avatar_url":"https://github.com/bumbii.png","language":"Mojo","funding_links":[],"categories":["Summary"],"sub_categories":[],"readme":"## Coding exercises in Python and Mojo \n\n$1.\\quad S(n) = 1 + 2 + 3 + ...+ n.$ [Python](https://github.com/bumbii/code/blob/main/python/exercises/001/001.py) [Mojo](https://github.com/bumbii/code/blob/main/mojo/exercises/001/001.mojo)\n\n---\n\n$2.\\quad S(n) = 1^2 + 2^2 + 3^2 + ... + n^2$ [Python](https://github.com/bumbii/code/blob/main/python/exercises/002/002.py) [Mojo](https://github.com/bumbii/code/blob/main/mojo/exercises/002/002.mojo)\n\n---\n\n$3.\\quad S(n) = 1 + \\frac{1}{2} + \\frac{1}{3} + ... + \\frac{1}{n}$ [Python](https://github.com/bumbii/code/blob/main/python/exercises/003/003.py) [Mojo](https://github.com/bumbii/code/blob/main/mojo/exercises/003/003.mojo)\n\n---\n\n$4.\\quad S(n) = 1 + \\frac{1}{4} + ... + \\frac{1}{2n}$\n\n---\n\n$5.\\quad S(n) = 1 + \\frac{1}{3} + \\frac{1}{5} + ... + \\frac{1}{2n + 1}$\n\n---\n\n$6.\\quad S(n) = \\frac{1}{1 * 2} + \\frac{1}{2 * 3} + ... + \\frac{1}{n * (n + 1)}$\n\n---\n\n$7.\\quad S(n) = \\frac{1}{2} + \\frac{2}{3} + \\frac{3}{4} +... + \\frac{n}{n + 1}$\n\n---\n\n$8.\\quad S(n) = \\frac{1}{2} + \\frac{3}{4} + \\frac{5}{6} +... + \\frac{2n + 1}{2n + 2}$\n\n---\n\n$9.\\quad T(n) = 1 * 2 * 3 * ... * n$\n\n---\n\n$10.\\quad T(x, n) = x^n$\n\n---\n\n$11.\\quad S(n) = 1 + 1 * 2 + 1 * 2 * 3 + ... + 1 * 2 * 3 * ... * n$\n\n---\n\n$12.\\quad S(n) = x + x^2 + x^3 + ... + x^n$\n\n---\n\n$13.\\quad S(n) = x^2 + x^4 + ... + x^{2n}$\n\n---\n\n$14.\\quad S(n) = x + x ^ 3 + x^5 + ... + x^{2n + 1}$\n\n---\n\n$15.\\quad S(n) = 1 + \\frac{1}{1 + 2} + \\frac{1}{1 + 2 + 3} + ... + \\frac{1}{1 + 2 + 3 + ... + n}$\n\n---\n\n$16.\\quad S(n) = x + \\frac{x^2}{1 + 2} + \\frac{x^3}{1 + 2 + 3} + ... + \\frac{x^n}{1 + 2 + 3 + ... + n}$\n\n---\n\n$17.\\quad S(n) = x + \\frac{x^2}{2!} + \\frac{x^3}{3!} + ... + \\frac{x^n}{n!}$\n\n---\n\n$18.\\quad S(n) = 1 + \\frac{x^2}{2!} + \\frac{x^4}{4!} + ... + \\frac{x^{2n}}{(2n)!}$\n\n---\n\n$19.\\quad S(n) = 1 + x + \\frac{x^3}{3!} + \\frac{x^5}{5!} + ... + \\frac{x^{2n + 1}}{(2n + 1)!}$\n\n---\n\n$20.\\quad \\text{List all divisors of a positive integer \\textcolor{green}{N}.}$\n\n$\\text{Example 1: input: N = 6, output: 1, 2, 3, 6}$\n\n$\\text{Example 2: input: N = 10, output: 1, 2, 5, 10}$\n\n---\n\n$21. \\text{Given a positive integer \\textcolor{green}{N}. Find the sum of all divisors of \\textcolor{green}{N}.}$\n\n$\\text{Example: input: N = 6, output: 12}$\n\n$\\text{Explain:}$\n\n$\\text{The divisors of 6 are: 1, 2, 3, 6}$\n\n$sum = 1 + 2 + 3 + 6 = 12$\n\n## References\n1. Programming Exercises (Vietnamese: Bài tập kỹ thuật lập trình) - Author: Nguyễn Tấn Trần Minh Khang (My teacher at University (University of Sciences, HCM City))\n2. Python in highschool - Author: Arnaud Bodin\n3. [How to write mathematical expressions on Github](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumbii%2Fcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumbii%2Fcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumbii%2Fcode/lists"}