{"id":24740327,"url":"https://github.com/derektypist/project-euler-044","last_synced_at":"2026-05-03T10:37:04.259Z","repository":{"id":60832056,"uuid":"545936005","full_name":"derektypist/project-euler-044","owner":"derektypist","description":"Pentagonal Numbers are generated by the formula Pn = n(3n-1)/2.  The first ten pentagonal numbers are 1, 5, 12, 22, 35, 51, 70, 92, 117, 145.  The aim is to find the pair of pentagonal numbers, Pj and Pk , for which their sum and difference is pentagonal and D = |Pk - Pj| is minimised.  Find the value of D.","archived":false,"fork":false,"pushed_at":"2022-10-05T09:34:57.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T08:39:36.294Z","etag":null,"topics":["bootstrap5","css3","google-fonts","html5","javascript","project-euler"],"latest_commit_sha":null,"homepage":"https://derektypist.github.io/project-euler-044","language":"HTML","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/derektypist.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}},"created_at":"2022-10-05T08:27:39.000Z","updated_at":"2022-10-05T09:39:57.000Z","dependencies_parsed_at":"2022-10-05T12:10:14.608Z","dependency_job_id":null,"html_url":"https://github.com/derektypist/project-euler-044","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/derektypist/project-euler-044","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derektypist%2Fproject-euler-044","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derektypist%2Fproject-euler-044/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derektypist%2Fproject-euler-044/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derektypist%2Fproject-euler-044/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derektypist","download_url":"https://codeload.github.com/derektypist/project-euler-044/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derektypist%2Fproject-euler-044/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32566444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bootstrap5","css3","google-fonts","html5","javascript","project-euler"],"created_at":"2025-01-27T23:22:54.496Z","updated_at":"2026-05-03T10:37:04.242Z","avatar_url":"https://github.com/derektypist.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Euler 044 - Pentagon Numbers\n\nPentagonal numbers are generated by the formula, P\u003csub\u003en\u003c/sub\u003e = n(3n-1)/2.  The first ten\npentagonal numbers are:\n\n    1, 5, 12, 22, 35, 51, 70, 92, 117, 145, ...\n\nIt can be seen that P\u003csub\u003e4\u003c/sub\u003e + P\u003csub\u003e7\u003c/sub\u003e = 22 + 70 = 92 = P\u003csub\u003e8\u003c/sub\u003e.  However,\ntheir difference is not pentagonal.\n\nFind the pair of pentagonal numbers, P\u003csub\u003ej\u003c/sub\u003e and P\u003csub\u003ek\u003c/sub\u003e, for which their sum and difference are pentagonal and D = |P\u003csub\u003ek\u003c/sub\u003e - P\u003csub\u003ej\u003c/sub\u003e| is minimised, what is the value of D.\n\nInformation at [Project Euler 044](https://projecteuler.net/problem=44)\n\n## UX\n\n**Getting Started**\n\nClick on the Show Solution button to show the solution.  Click on the Hide Solution button to hide the solution.\n\n**User Stories**\n\nAs a user, I can get the solution to be shown or hidden.\n\nAs a user, I expect the function `pentagonNumbers()` to return a number.\n\nAs a user, I expect the function `pentagonNumbers()` to return 5482660.\n\nUser Stories on function `pentagonNumbers()` is taken from [FreeCodeCamp - Coding Interview Prep - Project Euler 044](https://www.freecodecamp.org/learn/coding-interview-prep/project-euler/problem-44-pentagon-numbers)\n\n**Information Architecture**\n\nThe function `pentagonNumbers()` returns a number.\n\n## Features\n\nAllows the user to show or hide the solution to the problem as described in [Project Euler 044](https://projecteuler.net/problem=44).\n\n## Technologies\n\nUses HTML5, CSS3, JavaScript, Bootstrap 5.2.2 and Google Fonts.\n\n## Testing\n\nEnsure all user stories have been met.\n\n## Deployment\n\nDeployed on [GitHub Pages](https://derektypist.github.io/project-euler-044) at the main branch.\n\n## Credits\n\n### Content\n\nWritten by me.\n\n### Acknowledgements\n\n- [Project Euler](https://www.projecteuler.net)\n- [FreeCodeCamp](https://www.freecodecamp.org)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderektypist%2Fproject-euler-044","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderektypist%2Fproject-euler-044","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderektypist%2Fproject-euler-044/lists"}