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.

A130518 a(n) = Sum_{k=0..n} floor(k/3). (Partial sums of A002264.)

Original entry on oeis.org

0, 0, 0, 1, 2, 3, 5, 7, 9, 12, 15, 18, 22, 26, 30, 35, 40, 45, 51, 57, 63, 70, 77, 84, 92, 100, 108, 117, 126, 135, 145, 155, 165, 176, 187, 198, 210, 222, 234, 247, 260, 273, 287, 301, 315, 330, 345, 360, 376, 392, 408, 425, 442, 459, 477, 495, 513, 532, 551, 570
Offset: 0

Views

Author

Hieronymus Fischer, Jun 01 2007

Keywords

Comments

Complementary with A130481 regarding triangular numbers, in that A130481(n) + 3*a(n) = n(n+1)/2 = A000217(n).
Apart from offset, the same as A062781. - R. J. Mathar, Jun 13 2008
Apart from offset, the same as A001840. - Michael Somos, Sep 18 2010
The sum of any three consecutive terms is a triangular number. - J. M. Bergot, Nov 27 2014

Crossrefs

Programs

Formula

G.f.: x^3 / ((1-x^3)*(1-x)^2).
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5).
a(n) = (1/2)*floor(n/3)*(2*n - 1 - 3*floor(n/3)) = A002264(n)*(2n - 1 - 3*A002264(n))/2.
a(n) = (1/2)*A002264(n)*(n - 1 + A010872(n)).
a(n) = round(n*(n-1)/6) = round((n^2-n-1)/6) = floor(n*(n-1)/6) = ceiling((n+1)*(n-2)/6). - Mircea Merca, Nov 28 2010
a(n) = a(n-3) + n - 2, n > 2. - Mircea Merca, Nov 28 2010
a(n) = A214734(n, 1, 3). - Renzo Benedetti, Aug 27 2012
a(3n) = A000326(n), a(3n+1) = A005449(n), a(3n+2) = 3*A000217(n) = A045943(n). - Philippe Deléham, Mar 26 2013
a(n) = (3*n*(n-1) - (-1)^n*((1+i*sqrt(3))^(n-2) + (1-i*sqrt(3))^(n-2))/2^(n-3) - 2)/18, where i=sqrt(-1). - Bruno Berselli, Nov 30 2014
Sum_{n>=3} 1/a(n) = 20/3 - 2*Pi/sqrt(3). - Amiram Eldar, Sep 17 2022

A308067 Number of integer-sided triangles with perimeter n whose longest side length is odd.

Original entry on oeis.org

0, 0, 1, 0, 0, 0, 2, 1, 1, 0, 3, 2, 2, 1, 5, 3, 3, 2, 7, 5, 5, 3, 9, 7, 7, 5, 12, 9, 9, 7, 15, 12, 12, 9, 18, 15, 15, 12, 22, 18, 18, 15, 26, 22, 22, 18, 30, 26, 26, 22, 35, 30, 30, 26, 40, 35, 35, 30, 45, 40, 40, 35, 51, 45, 45, 40, 57, 51, 51, 45, 63, 57
Offset: 1

Views

Author

Wesley Ivan Hurt, May 10 2019

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Sum[Sum[Mod[n - i - k, 2]*Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
  • PARI
    a(n) = sum(k=1, n\3, sum(i=k, (n-k)\2, sign((i+k)\(n-i-k+1))*((n-i-k) % 2))); \\ Michel Marcus, May 15 2019

Formula

a(n) = Sum_{k=1..floor(n/3)} Sum_{i=k..floor((n-k)/2)} sign(floor((i+k)/(n-i-k+1))) * ((n-i-k) mod 2).
Conjectures from Colin Barker, May 11 2019: (Start)
G.f.: x^3*(1 - x + x^2 - x^3 + x^4) / ((1 - x)^3*(1 + x)^2*(1 - x + x^2)*(1 + x^2)^2*(1 + x + x^2)).
a(n) = a(n-1) - a(n-2) + a(n-3) + a(n-4) - a(n-5) + 2*a(n-6) - 2*a(n-7) + a(n-8) - a(n-9) - a(n-10) + a(n-11) - a(n-12) + a(n-13) for n>13.
(End)
Conjectures from Marc Bofill Janer, May 15 2019: (Start)
a(4*n) = a(4*n+1).
a(4*n) < a(4*n-1).
a(4*n) = A001840(n-1) = A130518(n+1) = A062781(n+2).
a(4*n-1) = a(4*n+4) = a(4*n+5).
a(4*n-1) = A001840(n) = A130518(n+2) = A062781(n+3).
a(4*n+2) = a(4*n-4) = a(4*n-3).
a(4*n+2) = A001840(n-2) for n>=2.
a(4*n+2) = A130518(n) = A062781(n+1).
(End)
Showing 1-2 of 2 results.