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.

Previous Showing 31-33 of 33 results.

A217762 Square array T, read by antidiagonals: T(n,k) = F(n) + 2*F(k) where F(n) is the n-th Fibonacci number.

Original entry on oeis.org

0, 2, 1, 2, 3, 1, 4, 3, 3, 2, 6, 5, 3, 4, 3, 10, 7, 5, 4, 5, 5, 16, 11, 7, 6, 5, 7, 8, 26, 17, 11, 8, 7, 7, 10, 13, 42, 27, 17, 12, 9, 9, 10, 15, 21, 68, 43, 27, 18, 13, 11, 12, 15, 23, 34, 110, 69, 43, 28, 19, 15, 14, 17, 23, 36, 55, 178, 111, 69, 44, 29, 21
Offset: 0

Views

Author

Philippe Deléham, Apr 07 2013

Keywords

Examples

			Square array begins:
...0....2....2....4....6...10...16...26...42...
...1....3....3....5....7...11...17...27...43...
...1....3....3....5....7...11...17...27...43...
...2....4....4....6....8...12...18...28...44...
...3....5....5....7....9...13...19...29...45...
...5....7....7....9...11...15...21...31...47...
...8...10...10...12...14...18...24...34...50...
..13...15...15...17...19...23...29...39...55...
..21...23...23...25...27...31...37...47...63...
..34...36...36...38...40...44...50...60...76...
..55...57...57...59...61...65...71...81...97...
..89...91...91...93...95...99..105..115..131...
.144..146..146..148..150..154..160..170..186...
...
		

Crossrefs

Formula

T(n,0) = A000045(n).
T(1,k) = A001588(k).
T(n,1) = T(n,2) = A157725(n).
T(n,3) = A157727(n).
T(n,n)= A022086(n) = 3*A000045(n).
T(n+1,n) = A000032(n+1) = A000204(n+1).
T(n+2,n) = A000285(n).
T(n+3,n) = A013655(n+1) = A001060(n+1).
T(n+4,n) = A021120(n).
T(n+5,n) = A022088(n+2) = 5*A000045(n+2).
T(n+6,n) = A022097(n+2).
T(n+7,n) = A022122(n+2).
T(n+8,n) = 3*A013655(n+2).
T(n+9,n) = A097657(n+2).
T(n+10,n) = A022118(n+4).
T(n,n+1) = A000045(n+3).
T(n,n+2) = A013655(n+1) = A001060(n+1).
T(n,n+3) = A000032(n+3).
T(n,n+4) = A022095(n+2).
T(n,n+5) = A022120(n+2).
T(n,n+6) = A022136(n+2).
T(n,n+7) = A022098(n+4).
T(n,n+8) = A022380(n+4).
T(n,n+9) = A206419(n+6).
Sum(T(n-k,k), 0<=k<=n) = 3*A000071(n+2).

A347351 Triangle read by rows: T(n,k) is the number of links of length k in a set of all necklaces A000358 of length n, 1 <= k <= n.

Original entry on oeis.org

1, 2, 1, 3, 0, 1, 4, 2, 0, 1, 5, 1, 1, 0, 1, 6, 4, 2, 1, 0, 1, 7, 3, 2, 1, 1, 0, 1, 8, 8, 3, 3, 1, 1, 0, 1, 9, 8, 7, 3, 2, 1, 1, 0, 1, 10, 18, 9, 5, 4, 2, 1, 1, 0, 1, 11, 21, 13, 8, 5, 3, 2, 1, 1, 0, 1, 12, 40, 24, 16, 8, 6, 3, 2, 1, 1, 0, 1, 13, 55, 34, 21, 13, 8, 5, 3, 2, 1, 1, 0, 1
Offset: 0

Views

Author

Maxim Karimov and Vladislav Sulima, Aug 28 2021

Keywords

Comments

Definitions:
1. A link is any 0 in any necklace from A000358 and all 1s following this 0 in this necklace to right until another 0 is encountered.
2. Length of the link is the number of elements in the link.
Sum of all elements n-row is Fibonacci(n-1)+n iff n=1 or n=p (follows from the identity for the sum of the Fibonacci numbers and the formula for the triangle T(n,k)).

Examples

			For k > 0:
   n\k |  1   2   3   4   5   6   7   8   9  10  ...
  -----+---------------------------------------
   1   |  1
   2   |  2   1
   3   |  3   0   1
   4   |  4   2   0   1
   5   |  5   1   1   0   1
   6   |  6   4   2   1   0   1
   7   |  7   3   2   1   1   0   1
   8   |  8   8   3   3   1   1   0   1
   9   |  9   8   7   3   2   1   1   0   1
  10   | 10  18   9   5   4   2   1   1   0   1
  ...
If we continue the calculation for nonpositive k, we get a table in which each row is a Fibonacci sequence, in which term(0) = A113166, term(1) = A034748.
For k <= 0:
   n\k |  0   -1   -2   -3   -4   -5   -6   -7   -8   -9 ...
  -----+------------------------------------------------
   1   |  0    1    1    2    3    5    8   13   21   34 ... A000045
   2   |  1    2    3    5    8   13   21   34   55   89 ... A000045
   3   |  1    4    5    9   14   23   37   60   97  157 ... A000285
   4   |  3    6    9   15   24   39   63  102  165  267 ... A022086
   5   |  3    9   12   21   33   54   87  141  228  369 ... A022379
   6   |  8   14   22   36   58   94  152  246  398  644 ... A022112
   7   |  8   19   27   46   73  119  192  311  503  814 ... A206420
   8   | 17   30   47   77  124  201  325  526  851 1377 ... A022132
   9   | 23   44   67  111  178  289  467  756 1223 1979 ... A294116
  10   | 41   68  109  177  286  463  749 1212 1961 3173 ... A022103
  ...
		

Crossrefs

Programs

  • MATLAB
    function [res] = calcLinks(n,k)
    if k==1
        res=n;
    else
        d=divisors(n);
        res=0;
        for i=1:length(d)
            if d (i) >= k
                res=res+eulerPhi(n/d(i))*fiboExt(d(i)-k-1);
            end
        end
    end
    function [s] = fiboExt(m) % extended fibonacci function (including negative arguments)
    m=sym(m); % for large fibonacci numbers
    if m>=0 || mod(m,2)==1
        s=fibonacci(abs(m));
    else
        s=fibonacci(abs(m))*(-1);
    end
    
  • PARI
    T(n, k) = if (k==1, n, sumdiv(n, d, if (d>=k, eulerphi(n/d)*fibonacci(d-k-1)))); \\ Michel Marcus, Aug 29 2021

Formula

If k=1, T(n,k)=n, otherwise T(n,k) = Sum_{d>=k, d|n} Phi(n/d)*Fibonacci(d-k-1), where Phi=A000010.

A377628 a(n) = a(n-1) + a(n-2) + 1 with a(0)=2 and a(1)=2.

Original entry on oeis.org

2, 2, 5, 8, 14, 23, 38, 62, 101, 164, 266, 431, 698, 1130, 1829, 2960, 4790, 7751, 12542, 20294, 32837, 53132, 85970, 139103, 225074, 364178, 589253, 953432, 1542686, 2496119, 4038806, 6534926, 10573733, 17108660, 27682394, 44791055, 72473450, 117264506
Offset: 0

Views

Author

Enrique Navarrete, Nov 02 2024

Keywords

Comments

a(n) = A000071(n+2) if the initial conditions are a(0)=0, a(1)=1, a(2)=2.

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{2,0,-1},{2,2,5},38] (* James C. McMahon, Nov 21 2024 *)

Formula

G.f.: (x^2-2*x+2)/((x-1)*(x^2+x-1)).
a(n) = 3*F(n+1)-1.
a(n) = F(n-1)+F(n+3)-1.
a(n) = 2*F(n+1)-F(n+2)+F(n+3)-1.
a(n) = A022086(n+1) - 1.
E.g.f.: 3*exp(x/2)*(5*cosh(sqrt(5)*x/2) + sqrt(5)*sinh(sqrt(5)*x/2))/5 - exp(x). - Stefano Spezia, Nov 04 2024
Previous Showing 31-33 of 33 results.