cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A325904 Generator sequence for A100982.

Original entry on oeis.org

1, 0, -3, -8, 15, -91, -54, 2531, -17021, 43035, -66258, 1958757, -24572453, 146991979, -287482322, -3148566077, 35506973089, -198639977241, 1006345648929, -8250266425561, 76832268802555, -517564939540551, 1890772860334557, 3323588929061820, -104547561696315008, 907385094824827328, -6313246535826877248
Offset: 0

Views

Author

Benjamin Lombardo, Sep 08 2019

Keywords

Comments

The name of this sequence is derived from its main purpose as a formula for A100982 (see link). Both formulas below stem from Mike Winkler's 2017 paper on the 3x+1 problem (see below), in which a recursive definition of A100982 and A076227 is created in 2-D space. These formulas redefine the sequences in terms of this 1-D recursive sequence.

Crossrefs

Programs

  • Python
    import math
    numberOfTerms = 20
    L6 = [1,0]
    def c(n):
        return math.floor(n/(math.log2(3)-1))
    def p(a,b):
        return math.factorial(a)/(math.factorial(a-b)*math.factorial(b))
    def anotherTerm(newTermCount):
        global L6
        for a in range(newTermCount+1-len(L6)):
            y = len(L6)
            newElement = 0
            for k in range(y):
                newElement -= int(L6[k]*p(c(y)+y-k-2, c(y)-2))
            L6.append(newElement)
    anotherTerm(numberOfTerms)
    print("A325904")
    for a in range(numberOfTerms+1):
        print(a, "|", L6[a])
    
  • SageMath
    @cached_function
    def a(n):
        if n < 2: return 0^n
        A = floor(n/(log(3, 2) - 1)) - 2
        return -sum(a(k)*binomial(A + n - k, A) for k in (0..n-1))
    [a(n) for n in range(100)] # Peter Luschny, Sep 10 2019

Formula

a(0)=1, a(1)=0, a(n) = -Sum_{k=0..n-1} a(k)*binomial(A325913(n)+n-k-2, A325913(n)-2) for n>1.

A368131 a(n) = floor(n * log(4/3) / log(3/2)).

Original entry on oeis.org

0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 14, 15, 16, 17, 17, 18, 19, 19, 20, 21, 21, 22, 23, 24, 24, 25, 26, 26, 27, 28, 29, 29, 30, 31, 31, 32, 33, 34, 34, 35, 36, 36, 37, 38, 39, 39, 40, 41, 41, 42, 43, 43, 44, 45, 46, 46, 47, 48
Offset: 0

Views

Author

Ruud H.G. van Tol, Jan 25 2024

Keywords

Comments

Highest k with 3^(n+k) <= 4^n * 2^k.

Crossrefs

Cf. A054414, A117630, A325913, A369522 (slope).

Programs

  • Mathematica
    Table[Floor[n*Log[4/3]/Log[3/2]],{n,0,68}] (* James C. McMahon, Jan 27 2024 *)
  • PARI
    alist(N) = my(a=-1, b=1, k=0); vector(N, i, a+=2; b*=3; if(logint(b, 2) < a, a++; b*=3; k++); k); \\ note that i is n+1

Formula

a(n) = floor(n * log(3) / log(3/2)) - 2*n.
a(n) = floor(n * arctanh(1/7) / arctanh(1/5)).
a(n) = A325913(n) - n.
a(n) = A117630(n) - 2*n.
a(n) = A054414(n) - 2*n - 1.
Showing 1-2 of 2 results.