login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A338544 a(n) = (5*floor((n-1)/2)^2 + (4+(-1)^n)*floor((n-1)/2)) / 2. 0
0, 0, 0, 4, 5, 13, 15, 27, 30, 46, 50, 70, 75, 99, 105, 133, 140, 172, 180, 216, 225, 265, 275, 319, 330, 378, 390, 442, 455, 511, 525, 585, 600, 664, 680, 748, 765, 837, 855, 931, 950, 1030, 1050, 1134, 1155, 1243, 1265, 1357, 1380, 1476, 1500, 1600, 1625, 1729, 1755, 1863 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Sum of the largest side lengths of all integer-sided triangles with perimeter 3n whose side lengths are in arithmetic progression (for example, when n=5 there are two triangles with perimeter 3*5 = 15 whose side lengths are in arithmetic progression: [3,5,7] and [4,5,6]; thus a(5) = 7+6 = 13).
LINKS
Wikipedia, Integer triangle
FORMULA
From Stefano Spezia, Nov 01 2020: (Start)
G.f.: x^3*(4 + x)/((1 - x)^3*(1 + x)^2).
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n > 4. (End)
16*a(n) = -14*n-1+10*n^2+(-1)^n-6*(-1)^n*n . - R. J. Mathar, Aug 19 2022
MATHEMATICA
Table[(5 Floor[(n - 1)/2]^2 + Floor[(n - 1)/2] (4 + (-1)^n))/2, {n, 0, 100}]
CROSSREFS
Sequence in context: A156638 A098868 A087882 * A191196 A191136 A083709
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Nov 01 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)