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 16 results. Next

A057353 a(n) = floor(3n/4).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.
For n >= 2, a(n) is the number of different integers that can be written as floor(k^2/n) for k = 1, 2, 3, ..., n-1. Generalization of the 1st problem proposed during the 15th Balkan Mathematical Olympiad in 1998 where the question was asked for n = 1998 with a(1998) = 1498. - Bernard Schott, Apr 22 2022
For n > 1, a(n) is also the Hadwiger number of the (n+1)-cycle complement graph (up to at least n = 16). - Eric W. Weisstein, Mar 10 2025

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

G.f.: (1+x+x^2)*x^2/((1-x)*(1-x^4)). - Bruce Corrigan (scentman(AT)myfamily.com), Jul 03 2002
For all m>=0 a(4m)=0 mod 3; a(4m+1)=0 mod 3; a(4m+2)= 1 mod 3; a(4m+3) = 2 mod 3
a(n) = A002378(n) - A173562(n). - Reinhard Zumkeller, Feb 21 2010
a(n+1) = A140201(n) - A002265(n+1). - Reinhard Zumkeller, Jan 26 2011
a(n) = n-1 - A002265(n-1) = ( A007310(n) + A057077(n+1) )/4 for n>0. a(n) = a(n-1)+a(n-4)-a(n-5) for n>4. - Bruno Berselli, Jan 28 2011
a(n) = 1/8*(6*n + 2*cos((Pi*n)/2) + cos(Pi*n) - 2*sin((Pi*n)/2) - 3). - Ilya Gutkovskiy, Sep 18 2015
a(4n) = a(4n+1). - Altug Alkan, Sep 26 2015
Sum_{n>=2} (-1)^n/a(n) = Pi/(3*sqrt(3)) (A073010). - Amiram Eldar, Sep 29 2022

A057354 a(n) = floor(2*n/5).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.
The sequence a(n) can be used in determining confidence intervals for the median of a population. Let Y(i) denote the i-th smallest datum in a random sample of size n from any population of values. When estimating the population median with a symmetric interval [Y(r), Y(n-r+1)], the exact confidence coefficient c for the interval is given by c = Sum_{k=r..n-r} C(n, k)(1/2)^n. If r = a(n-4), then the confidence coefficient will be (i) at least 0.90 for all n>=7, (ii) at least 0.95 for all n>=35, and (iii) at least 0.99 for all n>=115. To use the sequence, for example, decide on the minimum level of confidence desired, say 95%. Hence use a sample size of 35 or greater, say n=40. We then find a(n-4)=a(36)=14, and thus the 14th smallest and 14th largest values in the sample will form the bounds for the confidence interval. If the exact confidence coefficient c is needed, calculate c = Sum_{k=14..26} C(40,k)(1/2)^40, which is 0.9615226917. - Dennis P. Walsh, Nov 28 2011
a(n+2) is also the domination number of the n-antiprism graph. - Eric W. Weisstein, Apr 09 2016
Equals partial sums of 0 together with 0, 0, 1, 0, 1, ... (repeated). - Bruno Berselli, Dec 06 2016
Euler transform of length 5 sequence [1, 1, 0, -1, 1]. - Michael Somos, Dec 06 2016

Examples

			G.f. = x^3 + x^4 + 2*x^5 + 2*x^6 + 2*x^7 + 3*x^8 + 3*x^9 + 4*x^10 + 4*x^11 + ...
		

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

  • Magma
    [2*n div 5: n in [0..80]]; // Bruno Berselli, Dec 06 2016
  • Mathematica
    Table[Floor[2 n/5], {n, 0, 80}] (* Bruno Berselli, Dec 06 2016 *)
    a[ n_] := Quotient[2 n, 5]; (* Michael Somos, Dec 06 2016 *)
  • PARI
    a(n)=2*n\5 \\ Charles R Greathouse IV, Nov 28 2011
    
  • PARI
    concat(vector(3), Vec(x^3*(1 + x^2) / ((1 - x)^2*(1 + x + x^2 + x^3 + x^4)) + O(x^80))) \\ Colin Barker, Dec 06 2016.
    
  • Python
    [int(2*n/5) for n in range(80)] # Bruno Berselli, Dec 06 2016
    
  • Sage
    [floor(2*n/5) for n in range(80)] # Bruno Berselli, Dec 06 2016
    

Formula

G.f.: x^3*(1 + x^2) / ((x^4 + x^3 + x^2 + x + 1)*(x - 1)^2). - Numerator corrected by R. J. Mathar, Feb 20 2011
a(n) = a(n-1) + a(n-5) - a(n-6) for n>5. - Colin Barker, Dec 06 2016
a(n) = -a(2-n) for all n in Z. - Michael Somos, Dec 06 2016
a(n) = A002266(2*n). - R. J. Mathar, Jul 21 2020
Sum_{n>=3} (-1)^(n+1)/a(n) = log(2)/2. - Amiram Eldar, Sep 30 2022

A057357 a(n) = floor(3*n/7).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the gf) is computed using Euclid's algorithm for GCD.
This sequence relates to 3/7 = 0.42857142... (essentially given by A020806). It differs from the Beatty sequence A308358 for sqrt(3)/4 = 0.43301270... = A120011.

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

G.f.: (1+x^2+x^4)*x^3/((1-x)*(1-x^7)) - Bruce Corrigan (scentman(AT)myfamily.com), Jul 03 2002
for all m>=0 a(7m)=0 mod 3; a(7m+1)=0 mod 3; a(7m+2)= 0 mod 3; a(7m+3) = 1 mod 3; a(5m+4) = 1 mod 3; a(7m+5) = 2 mod 3; a(7m+6) = 2 mod 3 - Bruce Corrigan (scentman(AT)myfamily.com), Jul 03 2002
Sum_{n>=3} (-1)^(n+1)/a(n) = log(2)/3 (A193535). - Amiram Eldar, Sep 30 2022

A057356 a(n) = floor(2*n/7).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

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

References

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

Crossrefs

Programs

Formula

G.f.: x^4*(1+x)*(x^2-x+1)/( (x^6+x^5+x^4+x^3+x^2+x+1)*(x-1)^2 ). - Numerator corrected by R. J. Mathar, Feb 20 2011
Sum_{n>=4} (-1)^n/a(n) = Pi/4 (A003881). - Amiram Eldar, Sep 30 2022

A057359 a(n) = floor(5*n/7).

Original entry on oeis.org

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

G.f. x^2*(1+x+x^3+x^4+x^5) / ( (x^6+x^5+x^4+x^3+x^2+x+1)*(x-1)^2 ). Numerator corrected Feb 20 2011
Sum_{n>=2} (-1)^n/a(n) = sqrt(10-2*sqrt(5))*Pi/10 + log(phi)/sqrt(5) - log(2)/5, where phi is the golden ratio (A001622). - Amiram Eldar, Sep 30 2022

A057367 a(n) = floor(11*n/30).

Original entry on oeis.org

0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 26, 26, 26, 27, 27, 27, 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 Islamic leap years A057347. 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-30) - a(n-31).
G.f.: x^3*(1 + x^3 + x^6 + x^8 + x^11 + x^14 + x^17 + x^19 + x^22 + x^25 + x^27)/( (1+x)*(1+x+x^2)*(x^2-x+1)*(x^4+x^3+x^2+x+1)*(x^4-x^3+x^2-x+1)*(x^8 - x^7 + x^5 - x^4 + x^3 - x + 1)*(x^8+x^7-x^5-x^4-x^3+x+1)*(x-1)^2 ). [Corrected by R. J. Mathar, Feb 20 2011]

A057358 a(n) = floor(4*n/7).

Original entry on oeis.org

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

G.f. x^2*(1+x^2+x^4+x^5) / ( (x^6+x^5+x^4+x^3+x^2+x+1)*(x-1)^2 ) - Numerator corrected by R. J. Mathar, Feb 20 2011
Sum_{n>=2} (-1)^n/a(n) = (Pi - 2*log(sqrt(2)+1))/(4*sqrt(2)). - Amiram Eldar, Sep 30 2022

A057360 a(n) = floor(3*n/8).

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, 7, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 12, 12, 12, 13, 13, 13, 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, 24, 24, 24, 25, 25, 25, 26, 26, 27, 27, 27, 28, 28, 28
Offset: 0

Views

Author

Keywords

Comments

The cyclic pattern (and numerator of the g.f.) 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

G.f.: x^3*(1+x^3+x^5) / ( (1+x)*(x^2+1)*(x^4+1)*(x-1)^2 ).
From Wesley Ivan Hurt, May 15 2015: (Start)
a(n) = a(n-1)+a(n-8)-a(n-9).
a(n) = A132292(A008585(n)), n>0.
a(n) = A002265(A032766(n)). (End)
Sum_{n>=3} (-1)^(n+1)/a(n) = Pi/(6*sqrt(3)) + log(3)/2. - Amiram Eldar, Sep 30 2022

Extensions

Numerator of g.f. corrected by R. J. Mathar, Feb 20 2011

A057361 a(n) = floor(5*n/8).

Original entry on oeis.org

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

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

Formula

G.f. x^2*(1+x^2+x^3+x^5+x^6) / ( (1+x)*(x^2+1)*(x^4+1)*(x-1)^2 ). - Numerator corrected Feb 20 2011
a(0)=0, a(1)=0, a(2)=1, a(3)=1, a(4)=2, a(5)=3, a(6)=3, a(7)=4, a(8)=5, a(n)=a(n-1)+a(n-8)-a(n-9). - Harvey P. Dale, Jul 18 2013
Sum_{n>=2} (-1)^n/a(n) = sqrt(2*(1+1/sqrt(5)))*Pi/10 - log(phi)/sqrt(5), where phi is the golden ratio (A001622). - Amiram Eldar, Sep 30 2022

A057362 a(n) = floor(5*n/13).

Original entry on oeis.org

0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 13, 13, 13, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 18, 18, 18, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 23, 23, 23, 24, 24, 25, 25, 25, 26, 26, 26, 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

  • Magma
    [Floor(5*n/13): n in [0..50]]; // G. C. Greubel, Nov 02 2017
  • Mathematica
    Table[Floor[5*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,0,1,1,1,2,2,3,3,3,4,4,5},80] (* Harvey P. Dale, Dec 12 2021 *)
  • PARI
    a(n)=5*n\13 \\ Charles R Greathouse IV, Sep 02 2015
    

Formula

G.f.: x^3*(1 + x^3 + x^5 + x^8 + x^10) / ( (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]
Sum_{n>=3} (-1)^(n+1)/a(n) = sqrt(1-2/sqrt(5))*Pi/5 + arccosh(7/2)/(2*sqrt(5)) + log(2)/5. - Amiram Eldar, Sep 30 2022
Showing 1-10 of 16 results. Next