Efficient computation of factorial sums using a novel recursive identity
Project description
Factorial Sum
Efficient computation of factorial sums using a novel recursive identity discovered by Abdelkrim Meziani.
Installation
pip install factorial-sum
Usage
from factorial_sum import factorial_sum
print(factorial_sum(5)) # Output: 153
Features
- Implements the identity S(n) = n² * (n-2)! + S(n-3)
- Faster than naive summation for large n
- Includes caching for performance
- Fully tested with pytest
Author
Abdelkrim Meziani
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
factorial_sum-0.1.1.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file factorial_sum-0.1.1.tar.gz.
File metadata
- Download URL: factorial_sum-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34eee45246de9434a98b396c23a968fcbcb74b6e60525593b2412f349261542d
|
|
| MD5 |
43d7c0553c48d4ea8962cc755c7d918a
|
|
| BLAKE2b-256 |
3fc260ce113557bd140eb7b931846b42fa491dbeae9472fd63a1fe102a0d3a72
|
File details
Details for the file factorial_sum-0.1.1-py3-none-any.whl.
File metadata
- Download URL: factorial_sum-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8334cdb8fbad6a3df9ca6e132c035d80b5dac233eec73deb0a8a8dcc34c8ae7
|
|
| MD5 |
75558f2f13e94584680171b4e951caf9
|
|
| BLAKE2b-256 |
529dbd8727f17c526b2f80129409489a9aa2384447df513e7e1a547607f44575
|