Skip to main content

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


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.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

factorial_sum-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file factorial_sum-0.1.0.tar.gz.

File metadata

  • Download URL: factorial_sum-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for factorial_sum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e672bc31318619718eddac21c20b90d35cd5a70442bd72dfccc5d07c86547d7
MD5 2bab9ea930b444411ee40c36c8740cea
BLAKE2b-256 d53eed25d86334f18f0ae1bc4229a7825c0b3e5b292c780dd72b5171df998434

See more details on using hashes here.

File details

Details for the file factorial_sum-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: factorial_sum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for factorial_sum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb011f6862baf22cb1aca8972fcb73ca4490f7b5ec6dd34dacd726404cc26b83
MD5 0ed2c20753928863d540e3bf276d2865
BLAKE2b-256 15bfec1389b4157210c3d920e8ae0e00c82e1e5062e1c086dcebd32228682e1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page