{"id":16074787,"url":"https://github.com/skyv26/modified-kaprekar-number","last_synced_at":"2025-07-05T06:32:28.367Z","repository":{"id":103821035,"uuid":"536025770","full_name":"skyv26/Modified-Kaprekar-Number","owner":"skyv26","description":"In mathematics, a Kaprekar number for a given base is a non-negative integer, the representation of whose square in that base can be split into two parts that add up to the original number again. For instance, 45 is a Kaprekar number, because 45² = 2025 and 20+25 = 45.","archived":false,"fork":false,"pushed_at":"2022-09-13T08:23:58.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T04:55:51.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/skyv26.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-09-13T08:15:57.000Z","updated_at":"2023-02-13T09:43:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"288775a6-c484-4abf-b5b8-1fc175bc25a0","html_url":"https://github.com/skyv26/Modified-Kaprekar-Number","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"8784cef1824ba0be988a6e8c104ec4e9fcb658b8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2FModified-Kaprekar-Number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2FModified-Kaprekar-Number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2FModified-Kaprekar-Number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2FModified-Kaprekar-Number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyv26","download_url":"https://codeload.github.com/skyv26/Modified-Kaprekar-Number/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725542,"owners_count":20337667,"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","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-10-09T09:01:03.102Z","updated_at":"2025-03-15T11:43:44.681Z","avatar_url":"https://github.com/skyv26.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modified-Kaprekar-Number\n\n\u003e In mathematics, a Kaprekar number for a given base is a non-negative integer, the representation of whose square in that base can be split into two parts that add up to the original number again. For instance, 45 is a Kaprekar number, because 45² = 2025 and 20+25 = 45.\n\n## Explanation\n\nA modified Kaprekar number is a positive whole number with a special property. If you square it, then split the number into two integers and sum those integers, you have the same value you started with.\n\nConsider a positive whole number  with  digits. We square  to arrive at a number that is either  digits long or  digits long. Split the string representation of the square into two parts,  and . The right hand part,  must be  digits long. The left is the remaining substring. Convert those two substrings back to integers, add them and see if you get .\n\nFunction Description\n\nComplete the kaprekarNumbers function in the editor below.\n\n**kaprekarNumbers has the following parameter(s):**\n\n - int p: the lower limit\n - int q: the upper limit\n\n**Prints**\n\nIt should print the list of modified Kaprekar numbers, space-separated on one line and in ascending order. If no modified Kaprekar numbers exist in the given range, print `INVALID RANGE`. No return value is required.\n\n\n**Input Format**\n\nThe first line contains the lower integer limit *p*.\nThe second line contains the upper integer limit *q*.\n\n**Note:** Your range should be inclusive of the limits.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyv26%2Fmodified-kaprekar-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyv26%2Fmodified-kaprekar-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyv26%2Fmodified-kaprekar-number/lists"}