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 11-16 of 16 results.

A057363 a(n) = floor(8*n/13).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.

References

  • N. Dershowitz and E. M. Reingold, Calendrical Calculations, Cambridge University Press, 1997.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, Addison-Wesley, NY, 1994.

Crossrefs

Note that 20 appears twice. Different from A005206, A060143.

Programs

  • Magma
    [Floor(8*n/13): n in [0..50]]' // G. C. Greubel, Nov 02 2017
  • Mathematica
    Table[Floor[8*n/13], {n, 0, 50}] (* G. C. Greubel, Nov 02 2017 *)
    LinearRecurrence[{1,0,0,0,0,0,0,0,0,0,0,0,1,-1},{0,0,1,1,2,3,3,4,4,5,6,6,7,8},80] (* Harvey P. Dale, Jul 21 2020 *)
  • PARI
    a(n)=8*n\13 \\ Charles R Greathouse IV, Sep 02 2015
    

Formula

a(n) = a(n-1) + a(n-13) - a(n-14).
G.f.: x^2*(1+x)*(x^2 - x + 1)*(x^8 + x^7 + x^2 + 1)/( (x^12 + x^11 + x^10 + x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). [Numerator corrected Feb 20 2011]

A057364 a(n) = floor(8*n/21).

Original entry on oeis.org

0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 14, 14, 14, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 22, 22, 22, 23, 23, 24, 24, 24, 25, 25, 25, 26, 26, 27, 27, 27, 28, 28, 28, 29
Offset: 0

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.

References

  • N. Dershowitz and E. M. Reingold, Calendrical Calculations, Cambridge University Press, 1997.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, Addison-Wesley, NY, 1994.

Crossrefs

Programs

Formula

a(n) = a(n-1) + a(n-21) - a(n-22).
G.f.: x^3*(1+x)*(x^4 - x^3 + x^2 - x + 1)*(x^13 + x^11 + x^3 + 1) / ( (1 + x + x^2)*(x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)*(x^12 - x^11 + x^9 - x^8 + x^6 - x^4 + x^3 - x + 1)*(x-1)^2 ). [Numerator corrected by R. J. Mathar, Feb 20 2011]

A057365 a(n) = floor(13*n/21).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.

References

  • N. Dershowitz and E. M. Reingold, Calendrical Calculations, Cambridge University Press, 1997.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, Addison-Wesley, NY, 1994.

Crossrefs

Programs

Formula

a(n) = a(n-1) + a(n-21) - a(n-22).
G.f.: x^2*(1 + x^2 + x^3 + x^5 + x^7 + x^8 + x^10 + x^11 + x^13 + x^15 + x^16 + x^18 + x^19)/( (1+x+x^2)*(x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)*(x^12 - x^11 + x^9 - x^8 + x^6 - x^4 + x^3 - x + 1)*(x-1)^2 ). [Numerator corrected Feb 20 2011]

A057366 a(n) = floor(7*n/19).

Original entry on oeis.org

0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 28, 28
Offset: 0

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.

References

  • N. Dershowitz and E. M. Reingold, Calendrical Calculations, Cambridge University Press, 1997.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, Addison-Wesley, NY, 1994.

Crossrefs

Similar pattern in Hebrew leap years A057349. Floors of other ratios: A004526, A002264, A002265, A004523, A057353, A057354, A057355, A057356, A057357, A057358, A057359, A057360, A057361, A057362, A057363, A057364, A057365, A057366, A057367.

Programs

Formula

a(n) = a(n-1) + a(n-19) - a(n-20).
G.f.: x^3*(x^2-x+1)*(x^14 + x^13 + x^12 - x^10 + x^8 + x^7 + x^6 + x + 1)/( (x^18 + x^17 + x^16 + x^15 + x^14 + x^13 + x^12 + x^11 + x^10 + x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). [Corrected by R. J. Mathar, Feb 20 2011]

A227353 Number of lattice points in the closed region bounded by the graphs of y = 3*x/5, x = n, and y = 0, excluding points on the x-axis.

Original entry on oeis.org

0, 1, 2, 4, 7, 10, 14, 18, 23, 29, 35, 42, 49, 57, 66, 75, 85, 95, 106, 118, 130, 143, 156, 170, 185, 200, 216, 232, 249, 267, 285, 304, 323, 343, 364, 385, 407, 429, 452, 476, 500, 525, 550, 576, 603, 630, 658, 686, 715, 745, 775, 806, 837, 869, 902, 935
Offset: 1

Views

Author

Clark Kimberling, Jul 08 2013

Keywords

Comments

See A227347.

Examples

			a(1) = floor(3/5) = 0; a(2) = floor(6/5) = 1; a(3) = a(2) + floor(9/5) = 2; a(4) = a(3) + floor(12/5) = 4.
		

Crossrefs

Cf. A057355 (first differences).

Programs

  • Mathematica
    z = 150; r = 3/5; k = 1; a[n_] := Sum[Floor[r*x^k], {x, 1, n}]; t = Table[a[n], {n, 1, z}]
  • PARI
    a(n) = (3*n^2-n)\10; \\ Kevin Ryde, Mar 15 2022
    
  • Python
    a = lambda n: n*(3*n-1)//10 # Gennady Eremin, Mar 20 2022

Formula

a(n) = 2*a(n-1) - a(n-2) + a(n-5) - 2*a(n-6) + a(n-7).
G.f.: (x*(1 + x^2 + x^3))/((1 - x)^3*(1 + x + x^2 + x^3 + x^4)).
According to Wolfram Alpha, a(n) = floor(Re(E(n^2|Pi))) where E(x|m) is the incomplete elliptic integral of the second kind. - Kritsada Moomuang, Jan 28 2022
a(n) = a(n-1) + floor(3*n/5), n > 1. - Gennady Eremin, Mar 15 2022
a(n) = floor(n*(3*n-1)/10). - Kevin Ryde, Mar 15 2022

A327440 a(n) = floor(3*n/10).

Original entry on oeis.org

0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 23
Offset: 0

Views

Author

Bruno Berselli, Sep 11 2019

Keywords

Comments

The sequence can be obtained from A008585 by deleting the last digit of each term.

Crossrefs

Cf. A008585.
Similar sequences with the formula floor(k*n/10): A059995 (k=1); A002266 (k=2); A057354 (k=4); A004526 (k=5); A057355 (k=6); A188511 (k=7); A090223 (k=8).

Programs

  • Julia
    [div(3*n, 10) for n in 0:80] |> println
    
  • Mathematica
    Table[Floor[3 n/10], {n, 0, 80}]
    LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3}, 80]
  • PARI
    vector(80, n, n--; floor(3*n/10))

Formula

O.g.f.: x^4*(1 + x^3 + x^6)/((1 + x)*(1 - x)^2*(1 - x + x^2 - x^3 + x^4)*(1 + x + x^2 + x^3 + x^4)) = (x^4 + x^7 + x^10)/(1 - x - x^10 + x^11).
a(n) = a(n-1) + a(n-10) - a(n-11) for n > 10.
Previous Showing 11-16 of 16 results.