Giter Club home page Giter Club logo

oeis's Introduction

Integer sequences from the "Online Encyclopedia of Integer Sequences" (OEIS)

This repository is where I'll share the code that I made to generate some of the sequences in the OEIS.

Table of Contents

  • A000010 Euler's totient function phi(n): counts numbers <= n and prime to n.
    • Currently available in Python / C / C++. Demonstration with 0.1 delay:


  • A000032 Lucas numbers beginning at 2: L(n) = L(n-1) + L(n-2), L(0) = 2, L(1) = 1.
    • Currently available in Python / C / C++ (containing both a recursive and bottom-up approach).


  • A000043 Mersenne exponents: primes p such that 2^p - 1 is prime. Then 2^p - 1 is called a Mersenne prime.

  • A000045 Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
    • Currently available in Python / C / C++ (containing both a recursive and a bottom-up approach). Demonstration with 0.1 delay:


  • A000108 Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). Also called Segner numbers.
    • Currently available in Python / C / C++ (containing both a recursive and a bottom-up approach).

  • A000201 Lower Wythoff sequence: a(n) = floor(n x phi), where phi = (1+sqrt(5))/2.
    • Currently available in Python / C / C++.

  • A000217 Triangular numbers: a(n) = binomial(n+1,2) = n(n+1)/2 = 0 + 1 + 2 + ... + n.
    • Currently available in Python (containing both a arithmetic and a binomial method) / C / C++. Demonstration with 0.1 delay:


  • A005132 Recamán's sequence: a(0) = 0; for n > 0, a(n) = a(n-1) - n if positive and not already in the sequence, otherwise a(n) = a(n-1) + n.
    • Currently available in Python/ C / C++.

  • A005185 Hofstadter Q-sequence: a(1) = a(2) = 1; a(n) = a(n-a(n-1)) + a(n-a(n-2)) for n > 2.
    • Currently available in Python / C / C++ (containing both a recursive and bottom-up implementation).

  • A007318 Pascal's triangle read by rows: C(n,k) = binomial(n,k) = n!/(k!(n-k)!), 0 <= k <= n.
    • Currently available in Python / C (with some memory leakage to be fixed) / C++.

  • A035513 Wythoff array read by antidiagonals.
    • Currently available in Python / C++ (using Construction(1), from this)

oeis's People

Contributors

pzanettid avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.