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-10 of 13 results. Next

A130233 a(n) is the maximal k such that Fibonacci(k) <= n (the "lower" Fibonacci Inverse).

Original entry on oeis.org

0, 2, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
Offset: 0

Views

Author

Hieronymus Fischer, May 17 2007

Keywords

Comments

Inverse of the Fibonacci sequence (A000045), nearly, since a(Fibonacci(n)) = n except for n = 1 (see A130234 for another version). a(n) + 1 is equal to the partial sum of the Fibonacci indicator sequence (see A104162).

Examples

			a(10) = 6, since Fibonacci(6) = 8 <= 10 but Fibonacci(7) = 13 > 10.
		

Crossrefs

Cf. A130235 (partial sums), A104162 (first differences).
Other related sequences: A000045, A130234, A130237, A130239, A130255, A130259, A108852. Lucas inverse: A130241.
Cf. A001622 (golden ratio), A002390 (its log).

Programs

  • Mathematica
    fibLLog[0] := 0; fibLLog[1] := 2; fibLLog[n_Integer] := fibLLog[n] = If[n < Fibonacci[fibLLog[n - 1] + 1], fibLLog[n - 1], fibLLog[n - 1] + 1]; Table[fibLLog[n], {n, 0, 88}] (* Alonso del Arte, Sep 01 2013 *)
  • PARI
    a(n)=log(sqrt(5)*n+1.5)\log((1+sqrt(5))/2) \\ Charles R Greathouse IV, Mar 21 2012

Formula

a(n) = floor(log_phi((sqrt(5)*n + sqrt(5*n^2+4))/2)) where phi = (1+sqrt(5))/2 = A001622.
a(n) = floor(arcsinh(sqrt(5)*n/2) / log(phi)), with log(phi) = A002390.
a(n) = A130234(n+1) - 1.
G.f.: g(x) = 1/(1-x) * Sum_{k>=1} x^Fibonacci(k).
a(n) = floor(log_phi(sqrt(5)*n+1)), n >= 0, where phi is the golden ratio. - Hieronymus Fischer, Jul 02 2007

A130240 Partial sums of A130239.

Original entry on oeis.org

0, 2, 4, 6, 9, 12, 15, 18, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 255, 260
Offset: 0

Views

Author

Hieronymus Fischer, May 17 2007

Keywords

Crossrefs

Programs

Formula

a(n) = Sum_{k=0..n} A130239(k).
a(n) = (n+1)*A130233(sqrt(n)) - Fib(A130233(sqrt(n)) + 1) * Fib(A130232(sqrt(n))).
G.f.: (1/(1-x)^2) * Sum_{k>=1} x^(Fib(k)^2).

A130253 Number of Jacobsthal numbers (A001045) <=n.

Original entry on oeis.org

1, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9
Offset: 0

Views

Author

Hieronymus Fischer, May 20 2007

Keywords

Comments

Partial sums of the Jacobsthal indicator sequence (A105348).
For n<>1, we have a(A001045(n))=n+1.

Examples

			a(9)=5 because there are 5 Jacobsthal numbers <=9 (0,1,1,3 and 5).
		

Crossrefs

For partial sums see A130252. Other related sequences A001045, A130249, A130250, A130253, A105348. Also A130233, A130235, A130241, A108852, A130245.

Programs

Formula

a(n) = floor(log_2(3n+1)) + 1 = ceiling(log_2(3n+2)).
a(n) = A130249(n) + 1 = A130250(n+1).
G.f.: 1/(1-x)*(Sum_{k>=0} x^A001045(k)).

A130236 Partial sums of the 'upper' Fibonacci Inverse A130234.

Original entry on oeis.org

0, 1, 4, 8, 13, 18, 24, 30, 36, 43, 50, 57, 64, 71, 79, 87, 95, 103, 111, 119, 127, 135, 144, 153, 162, 171, 180, 189, 198, 207, 216, 225, 234, 243, 252, 262, 272, 282, 292, 302, 312, 322, 332, 342, 352, 362, 372, 382, 392, 402, 412, 422, 432, 442, 452, 462, 473
Offset: 0

Views

Author

Hieronymus Fischer, May 17 2007

Keywords

Crossrefs

Programs

  • Magma
    m:=120;
    f:= func< x | x*(&+[x^Fibonacci(j): j in [0..Floor(3*Log(3*m+1))]])/(1-x)^2 >;
    R:=PowerSeriesRing(Rationals(), m+1);
    [0] cat Coefficients(R!( f(x) )); // G. C. Greubel, Mar 18 2023
    
  • Mathematica
    b[n_]:= For[i=0, True, i++, If[Fibonacci[i] >= n, Return[i]]];
    b/@ Range[0, 56]//Accumulate (* Jean-François Alcover, Apr 13 2020 *)
  • SageMath
    m=120
    def f(x): return x*sum( x^fibonacci(j) for j in range(1+int(3*log(3*m+1))))/(1-x)^2
    def A130236_list(prec):
        P. = PowerSeriesRing(ZZ, prec)
        return P( f(x) ).list()
    A130236_list(m) # G. C. Greubel, Mar 18 2023

Formula

a(n) = Sum_{k=0..n} A130234(k).
a(n) = n*A130234(n) - Fibonacci(A130234(n)+1) + 1.
G.f.: (x/(1-x)^2) * Sum_{k>=0} x^Fibonacci(k).

A130257 Partial sums of the 'lower' odd Fibonacci Inverse A130255.

Original entry on oeis.org

1, 3, 5, 7, 10, 13, 16, 19, 22, 25, 28, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250
Offset: 1

Views

Author

Hieronymus Fischer, May 24 2007

Keywords

Crossrefs

Programs

  • Magma
    [(&+[Floor((1+Argsinh(Sqrt(5)*k/2)/Log((1+Sqrt(5))/2))/2): k in [1..n]]): n in [1..100]]; // G. C. Greubel, Sep 09 2018
  • Mathematica
    Table[Sum[Floor[(1 + ArcSinh[Sqrt[5]*k/2]/Log[GoldenRatio])/2], {k, 1, n}], {n, 1, 100}] (* G. C. Greubel, Sep 09 2018 *)
  • PARI
    for(n=1,100, print1(sum(k=1,n, floor((1+asinh(sqrt(5)*k/2)/log((1+sqrt(5))/2))/2)), ", ")) \\ G. C. Greubel, Sep 09 2018
    

Formula

a(n) = (n+1)*A130255(n) - A001906(A130255(n)).
a(n) = (n+1)*A130255(n) - Fib(2*A130255(n)).
G.f.: g(x)=1/(1-x)^2*sum(k>=1, x^Fib(2k-1)).

A130251 Partial sums of A130249.

Original entry on oeis.org

0, 2, 4, 7, 10, 14, 18, 22, 26, 30, 34, 39, 44, 49, 54, 59, 64, 69, 74, 79, 84, 90, 96, 102, 108, 114, 120, 126, 132, 138, 144, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 223, 230, 237, 244, 251, 258, 265, 272, 279, 286, 293, 300, 307, 314, 321
Offset: 0

Views

Author

Hieronymus Fischer, May 20 2007

Keywords

Examples

			G.f. = 2*x + 4*x^2 + 7*x^3 + 10*x^4 + 14*x^5 + 18*x^6 + 22*x^7 + ... - _Michael Somos_, Sep 17 2018
		

Crossrefs

Programs

  • Magma
    [0] cat [(&+[Floor(Log(3*k+1)/Log(2)) : k in [1..n]]): n in [1..100]]; // G. C. Greubel, Sep 09 2018
    
  • Mathematica
    Join[{0}, Table[Sum[Floor[Log[2, 3*k + 1]], {k, 1, n}], {n, 1, 2500}]] (* G. C. Greubel, Sep 09 2018 *)
  • PARI
    for(n=0,100, print1(sum(k=1,n, floor(log(3*k+1)/log(2))), ", ")) \\ G. C. Greubel, Sep 09 2018
    
  • Python
    def A130251(n): return (n+1)*((m:=(3*n+1).bit_length())-1)-(((1<>1) # Chai Wah Wu, Apr 17 2025

Formula

a(n) = Sum_{k=0..n} A130249(k).
a(n) = (n+1)*floor(log_2(3*n+1)) - (1/2)*(A001045(floor(log_2(3*n+1))+2)-1).
G.f.: (1/(1-x)^2)*Sum_{k>=1} x^A001045(k).

A130261 Partial sums of the 'lower' even Fibonacci Inverse A130259.

Original entry on oeis.org

0, 1, 2, 4, 6, 8, 10, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 127, 131, 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, 179, 183, 187, 192, 197, 202, 207, 212, 217
Offset: 0

Views

Author

Hieronymus Fischer, May 25 2007

Keywords

Crossrefs

Programs

  • Magma
    [(&+[Floor(Log((Sqrt(5)*k+1))/(2*Log((1+Sqrt(5))/2))): k in [0..n]]): n in [0..50]]; // G. C. Greubel, Sep 12 2018
  • Mathematica
    Table[Sum[Floor[1/2*Log[GoldenRatio, (Sqrt[5]*k + 1)]], {k, 0, n}], {n, 0, 50}] (* G. C. Greubel, Sep 12 2018 *)
  • PARI
    for(n=0,50, print1(sum(k=0,n, floor(log((sqrt(5)*k+1))/(2*log((1 +sqrt(5))/2)))), ", ")) \\ G. C. Greubel, Sep 12 2018
    

Formula

a(n) = (n+1)*A130259(n) - A001519(A130259(n)+1) + 1.
a(n) = (n+1)*A130259(n) - Fib(2*A130259(n)+1) + 1.
G.f.: g(x) = 1/(1-x)^2*Sum_{k>=1} x^Fib(2*k).

A130237 The 'lower' Fibonacci Inverse A130233(n) multiplied by n.

Original entry on oeis.org

0, 2, 6, 12, 16, 25, 30, 35, 48, 54, 60, 66, 72, 91, 98, 105, 112, 119, 126, 133, 140, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 264, 306, 315, 324, 333, 342, 351, 360, 369, 378, 387, 396, 405, 414, 423, 432, 441, 450, 459, 468, 477, 486, 550
Offset: 0

Views

Author

Hieronymus Fischer, May 17 2007

Keywords

Crossrefs

Programs

  • Magma
    [n*Floor(Log(3/2 +n*Sqrt(5))/Log((1+Sqrt(5))/2)): n in [0..70]]; // G. C. Greubel, Mar 18 2023
    
  • Mathematica
    Table[n*Floor[Log[GoldenRatio, 3/2 +n*Sqrt[5]]], {n,0,70}] (* G. C. Greubel, Mar 18 2023 *)
  • SageMath
    [n*int(log(3/2 +n*sqrt(5), golden_ratio)) for n in range(71)] # G. C. Greubel, Mar 18 2023

Formula

a(n) = n*A130233(n).
a(n) = n*floor(arcsinh(sqrt(5)*n/2)/log(phi)).
G.f.: (1/(1-x))*Sum_{k>=1} (Fib(k) + x/(1-x))*x^Fib(k).

A130239 Maximal index k of the square of a Fibonacci number such that Fib(k)^2 <= n (the 'lower' squared Fibonacci Inverse).

Original entry on oeis.org

0, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 0

Views

Author

Hieronymus Fischer, May 17 2007, May 28 2007

Keywords

Examples

			a(10) = 4 since Fib(4)^2 = 9 <= 10 but Fib(5)^2 = 25 > 10.
		

Crossrefs

Programs

Formula

a(n) = max(k | Fib(k)^2 <= n) = A130233(floor(sqrt(n))).
a(n) = floor(arcsinh(sqrt(5n)/2)/log(phi)), where phi=(1+sqrt(5))/2.
G.f.: (1/(1-x))*Sum_{k>=1} x^(Fib(k)^2).

A130238 Partial sums of A130237.

Original entry on oeis.org

0, 2, 8, 20, 36, 61, 91, 126, 174, 228, 288, 354, 426, 517, 615, 720, 832, 951, 1077, 1210, 1350, 1518, 1694, 1878, 2070, 2270, 2478, 2694, 2918, 3150, 3390, 3638, 3894, 4158, 4464, 4779, 5103, 5436, 5778, 6129, 6489, 6858, 7236, 7623, 8019, 8424, 8838
Offset: 0

Views

Author

Hieronymus Fischer, May 17 2007

Keywords

Crossrefs

Programs

  • Magma
    [(&+[j*Floor(Log(3/2 +j*Sqrt(5))/Log((1+Sqrt(5))/2)): j in [0..n]]): n in [0..70]]; // G. C. Greubel, Mar 18 2023
    
  • Mathematica
    a[n_]:= a[n]= Sum[j*Floor[Log[GoldenRatio, 3/2 +j*Sqrt[5]]], {j,0,n}];
    Table[a[n], {n,0,70}] (* G. C. Greubel, Mar 18 2023 *)
  • SageMath
    def A130238(n): return sum(j*int(log(3/2 +j*sqrt(5), golden_ratio)) for j in range(n+1))
    [A130238(n) for n in range(71)] # G. C. Greubel, Mar 18 2023

Formula

a(n) = Sum_{k=0..n} A130237(k).
a(n) = (n*(n+1)*A130233(n) - (Fib(A130233(n)) - 1)*(Fib(A130233(n) + 1) - 1))/2.
G.f.: (1/(1-x)^3)*Sum_{k>=1} (Fib(k)*(1-x) + x)*x^Fib(k).
Showing 1-10 of 13 results. Next