A collection of functions to play with Lychrel numbers and other funny mathematical problems
Project description
Lychrel
This is a collection of python functions which implements famous mathematical problems, and it is named after the lychrel numbers.
Under the hood lychrel is implemented in rust thanks to PyO3.
Any contribution is welcome!
Implemented algorithms
- Lychrel numbers: find first palindrome of the reverse-and-add procedure and determine if a number is a lychrel candidate;
- Generalized fibonacci sequences: also known as Lucas Sequence;
- Read out and loud: Given a number, this function compute the sequence of digits resulting from reading out loud
the number, grouping together multiples of the same digit if any. E.g.
read_out_loud(3211) == 131221
because the number3211
is read as "one 3, one 2 and two 1s";
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for lychrel-0.2.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fdb7776b37b00b4b6d54b930aa4abbe5382a2a80d757f5e2f68f196c214981b |
|
MD5 | 1402ba6f1b7075348eb4086f6f13761e |
|
BLAKE2b-256 | 7ffb5e18223421515c6b9131a3bb0691cf58b800e01b34408537b1abae8e006b |
Close
Hashes for lychrel-0.2.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde73d5ee41d42b7abbb8e82c2777b12023ff3e265e76d57b9d1b398252cb58d |
|
MD5 | 1b0fa147bc17bc0ec3ac3ba3162a5730 |
|
BLAKE2b-256 | 2f8c9da8c5bc72730a1cf4852ec0e31a01eb44914875191d350284b5d5144cd6 |
Close
Hashes for lychrel-0.2.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 228673d28cc29f41da52d820ba3f0b9a046036922bb610f4d0f4de7f9ee8b1b1 |
|
MD5 | 47cc44b75c37f9519935efa200cfa7d9 |
|
BLAKE2b-256 | 1ec53239f6ec75211d0a3d47257f01e26cef4c7ce7f2ed26a75d9527bcfa33b6 |
Close
Hashes for lychrel-0.2.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a33fc7cb3a387457841351c72870ba27a1dd3d95a24ca4a7ec3d2f8e33786fb5 |
|
MD5 | 742b5d904cb664593e4b6b4acf2ffb28 |
|
BLAKE2b-256 | b1bbbf3948aebe6b9ab59aaa7bf3846f729bc8e79a91c8c94663b634cd80f2c3 |
Close
Hashes for lychrel-0.2.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f37b225c6b131b8ed991bdc884eb31fe27c9eba0c2715314b87a56842b0054e |
|
MD5 | 309f5068d0e5041dedb9a1c4eaed14b3 |
|
BLAKE2b-256 | 6c71c846110ed3abf73cc0bf2fdf2bf77dbc12e6b8e393bcc6bfec79fbebc62e |
Close
Hashes for lychrel-0.2.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05f3582e43bf07fbe683354cedcde108e47b70345b065ae003c1a2962101728 |
|
MD5 | 8a02a869757f464c8a62e62d8d300b65 |
|
BLAKE2b-256 | 2294c16fd5735b8d5b1a5f7e6e8b8a85b36c4daf10848c38a3946e15cbf9cc77 |
Close
Hashes for lychrel-0.2.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c640c77837d8a227ad3255ccafdaf8876e8a354c9c41aad7cb9afc1e1d1696d8 |
|
MD5 | a38eb5b60f3d5393ccee71d54befcf1f |
|
BLAKE2b-256 | e645005ae715894f1d516c08d16bf67b132a706566d19e63c63d94e3aff9474d |