Skip to main content

A Package for natively representing and calculating common integer sequences

Project description

Python Integer Sequences

Developed and maintained by Tyler R. Drury,

This project is a pure python package, allowing users to conveniently represent and generate common integer sequences, including:

  • Factorials
  • Prime numbers
  • Catalan numbers
  • Horadam numbers
  • Padovan numbers
  • Hofstadter numbers
  • Collatz numbers
  • Pronic numbers
  • Lazy Caterer and Cake Numbers
  • Geometric numbers(polygonal, polyhedral)

Target Platform

Python 3.6, 64-bit


Use

from integerSequence import Horadam
from integerSequence import Fibonacci as fib
from integerSequence import getPrimes

p = getPrimes(1000) #calculate all primes up to 1000
print(p)

h = Horadam(2,3,1,2)    #unnamed Horadam sequence
s = h.series(10)
print(s)

s = fib.series(20)
print(s)


Download

Latest compiled python files/wheels can be found on the Python Package Index here, or developers can find the current Source Code at the GitHub repo here, if you wish to contribute.


Primary Developer

  • Tyler R. Drury

Additional Contributors


Related Projects

Similar or related projects for various platforms can also be found here

Libraries

  • IntegerSequences-cpp a compiled C/C++ library for generating common sequences of integers
  • IntegerSequences-js a Javascript library for generating common sequences of integers, for front-end web browsers use
  • IntegerSequences-php a PHP library for generating common sequences of integers, for back-end server use

Additional Online References and Resources


Acknowledgements

  • Neil Sloane, founder of the Online Encyclopaedia of Integer Sequences

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

integerSequence-0.1.1.tar.gz (21.9 kB view hashes)

Uploaded Source

Built Distribution

integerSequence-0.1.1-py3-none-any.whl (27.2 kB view hashes)

Uploaded Python 3

Supported by

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