Skip to main content

Arithmetic sequence calculator

Project description

A Python package for calculating arithmetic sequences.

Features:

  • Calculate the nth term of an arithmetic sequence
  • Calculate the sum of the first n terms of an arithmetic sequence

Installation:

pip install seqcalc

Usage:

Find the nth term

seqcalc.find(nth, first_term, common_difference)

Find the sum

seqcalc.find_sum(nth, first_term, common_difference)

Example:

import seqcalc

nth = 16
first_term = 3
d = 2

seq = seqcalc.find(nth, first_term, d)
print(seq)

# output: 33

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

seqcalc-0.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

seqcalc-0.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file seqcalc-0.0.2.tar.gz.

File metadata

  • Download URL: seqcalc-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for seqcalc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9dac793a8b681d79916b18180b873fc1af69233b877aa44b0d50f1aa1e909f39
MD5 aeb77afb250e4cf71450c857749a7a1c
BLAKE2b-256 1d8715170989fc5da4ca28809737079db45276b86e136cced451ea91373bb838

See more details on using hashes here.

File details

Details for the file seqcalc-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: seqcalc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for seqcalc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f38e6583201e70d75e3c44c0196af7bd01566ad538d1e848e28e9486e528b5b8
MD5 8d97d10a67115ff34cf453908653c50e
BLAKE2b-256 69f5b0740c16d68054e71cc6e3116786a117534cd393a766754ea8746f8c9cbe

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