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-9 of 9 results.

A055096 Triangle read by rows, sums of 2 distinct nonzero squares: T(n,k) = k^2+n^2, (n>=2, 1 <= k <= n-1).

Original entry on oeis.org

5, 10, 13, 17, 20, 25, 26, 29, 34, 41, 37, 40, 45, 52, 61, 50, 53, 58, 65, 74, 85, 65, 68, 73, 80, 89, 100, 113, 82, 85, 90, 97, 106, 117, 130, 145, 101, 104, 109, 116, 125, 136, 149, 164, 181, 122, 125, 130, 137, 146, 157, 170, 185, 202, 221, 145, 148, 153, 160
Offset: 2

Views

Author

Antti Karttunen, Apr 04 2000

Keywords

Comments

Discovered by Bernard Frénicle de Bessy (1605?-1675). - Paul Curtz, Aug 18 2008
Terms that are not hypotenuses in primitive Pythagorean triangles, are replaced by 0 in A222946. - Reinhard Zumkeller, Mar 23 2013
This triangle T(n,k) gives the circumdiameters for the Pythagorean triangles with a = (n+1)^2 - k^2, b = 2*(n+1)*k and c = (n+1)^2 + k^2 (see the Floor van Lamoen entries or comments A063929, A063930, A002283, A003991). See also the formula section. Note that not all Pythagorean triangles are covered, e.g., (9,12,15) does not appear. - Wolfdieter Lang, Dec 03 2014

Examples

			The triangle T(n, k) begins:
n\k   1   2   3   4   5   6   7   8   9  10  11 ...
2:    5
3:   10  13
4:   17  20  25
5:   26  29  34  41
6:   37  40  45  52  61
7:   50  53  58  65  74  85
8:   65  68  73  80  89 100 113
9:   82  85  90  97 106 117 130 145
10: 101 104 109 116 125 136 149 164 181
11: 122 125 130 137 146 157 170 185 202 221
12: 145 148 153 160 169 180 193 208 225 244 265
...
13: 170 173 178 185 194 205 218 233 250 269 290 313,
14: 197 200 205 212 221 232 245 260 277 296 317 340 365,
15: 226 229 234 241 250 261 274 289 306 325 346 369 394 421,
16: 257 260 265 272 281 292 305 320 337 356 377 400 425 452 481,
...
Formatted and extended by _Wolfdieter Lang_, Dec 02 2014 (reformatted Jun 11 2015)
The successive terms are (1^2+2^2), (1^2+3^2), (2^2+3^2), (1^2+4^2), (2^2+4^2), (3^2+4^2), ...
		

Crossrefs

Sorting gives A024507. Count of divisors: A055097, Möbius: A055132. For trinv, follow A055088.
Cf. A001844 (right edge), A002522 (left edge), A033429 (central column).

Programs

  • Haskell
    a055096 n k = a055096_tabl !! (n-1) !! (k-1)
    a055096_row n = a055096_tabl !! (n-1)
    a055096_tabl = zipWith (zipWith (+)) a133819_tabl a140978_tabl
    -- Reinhard Zumkeller, Mar 23 2013
    
  • Magma
    [n^2+k^2: k in [1..n-1], n in [2..15]]; // G. C. Greubel, Apr 19 2023
    
  • Maple
    sum2distinct_squares_array := (n) -> (((n-((trinv(n-1)*(trinv(n-1)-1))/2))^2)+((trinv(n-1)+1)^2));
  • Mathematica
    T[n_, k_]:= (n+1)^2 + k^2; Table[T[n, k], {n,15}, {k,n}]//Flatten (* Jean-François Alcover, Mar 16 2015, after Reinhard Zumkeller *)
  • SageMath
    def A055096(n,k): return n^2 + k^2
    flatten([[A055096(n,k) for k in range(1,n)] for n in range(2,16)]) # G. C. Greubel, Apr 19 2023

Formula

a(n) = sum2distinct_squares_array(n).
T(n, 1) = A002522(n).
T(n, n-1) = A001844(n-1).
T(2*n-2, n-1) = A033429(n-1).
T(n,k) = A133819(n,k) + A140978(n,k) = (n+1)^2 + k^2, 1 <= k <= n. - Reinhard Zumkeller, Mar 23 2013
T(n, k) = a*b*c/(2*sqrt(s*(s-1)*(s-b)*(s-c))) with s =(a + b + c)/2 and the substitution a = (n+1)^2 - k^2, b = 2*(n+1)*k and c = (n+1)^2 + k^2 (the circumdiameter for the considered Pythagorean triangles). - Wolfdieter Lang, Dec 03 2014
From Bob Selcoe, Mar 21 2015: (Start)
T(n,k) = 1 + (n-k+1)^2 + Sum_{j=0..k-2} (4*j + 2*(n-k+3)).
T(n,k) = 1 + (n+k-1)^2 - Sum_{j=0..k-2} (2*(n+k-3) - 4*j).
Therefore: 4*(n-k+1) + Sum_{j=0..k-2} (2*(n-k+3) + 4*j) = 4*n(k-1) - Sum_{j=0..k-2} (2*(n+k-3) - 4*j). (End)
From G. C. Greubel, Apr 19 2023: (Start)
T(2*n-3, n-1) = A033429(n-1).
T(2*n-4, n-2) = A079273(n-1).
T(2*n-2, n) = A190816(n).
T(3*n-4, n-1) = 10*A000290(n-1) = A033583(n-1).
Sum_{k=1..n-1} T(n, k) = A331987(n-1).
Sum_{k=1..floor(n/2)} T(n-k, k) = A226141(n-1). (End)

Extensions

Edited: in T(n, k) formula by Reinhard Zumkeller k < n replaced by k <= n. - Wolfdieter Lang, Dec 02 2014
Made definition more precise, changed offset to 2. - N. J. A. Sloane, Mar 30 2015

A294270 Sum of the cubes of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 9, 44, 100, 252, 441, 848, 1296, 2150, 3025, 4572, 6084, 8624, 11025, 14912, 18496, 24138, 29241, 37100, 44100, 54692, 64009, 77904, 90000, 107822, 123201, 145628, 164836, 192600, 216225, 250112, 278784, 319634, 354025, 402732, 443556, 501068, 549081
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Comments

a(n) is a square when n is odd. In fact: a(2*k+1) = (2*k^2 + k)^2; a(2*k) = k^2*(4*k^2 - 3*k + 1), where (2*k)^2 > 4*k^2 - 3*k + 1 > (2*k - 1)^2 for k>0. - Bruno Berselli, Nov 20 2017

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), this sequence (k=3), A294271 (k=4), A294272 (k=5), A294273 (k=6), A294274 (k=7), A294275 (k=8), A294276 (k=9), A294279 (k=10).

Programs

  • Magma
    [0] cat &cat[[k^2*(4*k^2-3*k+1),k^2*(2*k+1)^2]: k in [1..20]]; // Bruno Berselli, Nov 22 2017
  • Mathematica
    Table[Sum[i^3 + (n - i)^3, {i, Floor[n/2]}], {n, 80}]
  • PARI
    concat(0, Vec(x^2*(2 + 7*x + 27*x^2 + 28*x^3 + 24*x^4 + 7*x^5 + x^6) / ((1 - x)^5*(1 + x)^4) + O(x^40))) \\ Colin Barker, Nov 20 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^3 + (n-i)^3.
From Colin Barker, Nov 20 2017: (Start)
G.f.: x^2*(2 + 7*x + 27*x^2 + 28*x^3 + 24*x^4 + 7*x^5 + x^6) / ((1 - x)^5*(1 + x)^4).
a(n) = n^2*(4*n^2 - 7*n + 4 + n*(-1)^n)/16.
a(n) = a(n-1) + 4*a(n-2) - 4*a(n-3) - 6*a(n-4) + 6*a(n-5) + 4*a(n-6) - 4*a(n-7) - a(n-8) + a(n-9) for n>9. (End)

A294271 Sum of the fourth powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 17, 114, 354, 1060, 2275, 4932, 8772, 15958, 25333, 41270, 60710, 91672, 127687, 182408, 243848, 333930, 432345, 572666, 722666, 931788, 1151403, 1451980, 1763020, 2182206, 2610621, 3180478, 3756718, 4514624, 5273999, 6263056, 7246096, 8515538, 9768353
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), this sequence (k=4), A294272 (k=5), A294273 (k=6), A294274 (k=7), A294275 (k=8), A294276 (k=9), A294279 (k=10).

Programs

  • Magma
    [(n*(-16 + 160*n^2 + 15*(-15 + (-1)^n)*n^3 + 96*n^4))/480 : n in [1..50]]; // Wesley Ivan Hurt, Jul 12 2025
  • Mathematica
    Table[Sum[i^4 + (n - i)^4, {i, Floor[n/2]}], {n, 60}]
    Table[Total[Flatten[IntegerPartitions[n,{2}]]^4],{n,40}] (* Harvey P. Dale, Mar 01 2019 *)
  • PARI
    concat(0, Vec(x^2*(2 + 15*x + 87*x^2 + 165*x^3 + 241*x^4 + 165*x^5 + 77*x^6 + 15*x^7 + x^8) / ((1 - x)^6*(1 + x)^5) + O(x^40))) \\ Colin Barker, Nov 20 2017
    
  • PARI
    a(n) = sum(i=1, n\2, i^4 + (n-i)^4); \\ Michel Marcus, Nov 20 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^4 + (n-i)^4.
From Colin Barker, Nov 20 2017: (Start)
G.f.: x^2*(2 + 15*x + 87*x^2 + 165*x^3 + 241*x^4 + 165*x^5 + 77*x^6 + 15*x^7 + x^8) / ((1 - x)^6*(1 + x)^5).
a(n) = (1/480)*(n*(-16 + 160*n^2 + 15*(-15 + (-1)^n)*n^3 + 96*n^4)).
a(n) = a(n-1) + 5*a(n-2) - 5*a(n-3) - 10*a(n-4) + 10*a(n-5) + 10*a(n-6) - 10*a(n-7) - 5*a(n-8) + 5*a(n-9) + a(n-10) - a(n-11) for n>11.
(End)

A294272 Sum of the fifth powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 33, 308, 1300, 4668, 12201, 30032, 61776, 123950, 220825, 389652, 630708, 1018808, 1539825, 2331968, 3347776, 4826682, 6657201, 9233300, 12333300, 16578452, 21571033, 28256208, 35970000, 46106918, 57617001, 72503732, 89176276, 110446800, 133987425
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), A294271 (k=4), this sequence (k=5), A294273 (k=6), A294274 (k=7), A294275 (k=8), A294276 (k=9), A294279 (k=10).

Programs

  • Magma
    [(n^2*(-16 + 80*n^2 + 3*(-31 + (-1)^n)*n^3 + 32*n^4))/192 : n in [1..50]]; // Wesley Ivan Hurt, Jul 12 2025
  • Mathematica
    Table[Sum[i^5 + (n - i)^5, {i, Floor[n/2]}], {n, 50}]
    Table[Total[Flatten[IntegerPartitions[n,{2}]]^5],{n,35}] (* or *) LinearRecurrence[{1,6,-6,-15,15,20,-20,-15,15,6,-6,-1,1},{0,2,33,308,1300,4668,12201,30032,61776,123950,220825,389652,630708},40] (* Harvey P. Dale, Jun 07 2025 *)
  • PARI
    concat(0, Vec(x^2*(2 + 31*x + 263*x^2 + 806*x^3 + 1748*x^4 + 2046*x^5 + 1708*x^6 + 806*x^7 + 238*x^8 + 31*x^9 + x^10) / ((1 - x)^7*(1 + x)^6) + O(x^40))) \\ Colin Barker, Nov 20 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^5 + (n-i)^5.
From Colin Barker, Nov 20 2017: (Start)
G.f.: x^2*(2 + 31*x + 263*x^2 + 806*x^3 + 1748*x^4 + 2046*x^5 + 1708*x^6 + 806*x^7 + 238*x^8 + 31*x^9 + x^10) / ((1 - x)^7*(1 + x)^6).
a(n) = (1/192)*(n^2*(-16 + 80*n^2 + 3*(-31 + (-1)^n)*n^3 + 32*n^4)).
a(n) = a(n-1) + 6*a(n-2) - 6*a(n-3) - 15*a(n-4) + 15*a(n-5) + 20*a(n-6) - 20*a(n-7) - 15*a(n-8) + 15*a(n-9) + 6*a(n-10) - 6*a(n-11) - a(n-12) + a(n-13) for n>13.
(End)

A294273 Sum of the sixth powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 65, 858, 4890, 21244, 67171, 188916, 446964, 994030, 1978405, 3796622, 6735950, 11680408, 19092295, 30745064, 47260136, 71929146, 105409929, 153455810, 216455810, 303993492, 415601835, 566623708, 754740700, 1003708134, 1307797101, 1702747126
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), A294271 (k=4), A294272 (k=5), this sequence (k=6), A294274 (k=7), A294275 (k=8), A294276 (k=9), A294279 (k=10).

Programs

  • Magma
    [(n/42 - n^3/6 + n^5/2 + 1/128*(-63 + (-1)^n)*n^6 + n^7/7) : n in [1..50]]; // Wesley Ivan Hurt, Jul 12 2025
  • Mathematica
    Table[Sum[i^6 + (n - i)^6, {i, Floor[n/2]}], {n, 50}]
  • PARI
    concat(0, Vec(x^2*(2 + 63*x + 779*x^2 + 3591*x^3 + 10845*x^4 + 19026*x^5 + 23850*x^6 + 19026*x^7 + 10600*x^8 + 3591*x^9 + 723*x^10 + 63*x^11 + x^12) / ((1 - x)^8*(1 + x)^7) + O(x^40))) \\ Colin Barker, Nov 20 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^6 + (n-i)^6.
From Colin Barker, Nov 20 2017: (Start)
G.f.: x^2*(2 + 63*x + 779*x^2 + 3591*x^3 + 10845*x^4 + 19026*x^5 + 23850*x^6 + 19026*x^7 + 10600*x^8 + 3591*x^9 + 723*x^10 + 63*x^11 + x^12) / ((1 - x)^8*(1 + x)^7).
a(n) = (n/42 - n^3/6 + n^5/2 + 1/128*(-63 + (-1)^n)*n^6 + n^7/7).
a(n) = a(n-1) + 7*a(n-2) - 7*a(n-3) - 21*a(n-4) + 21*a(n-5) + 35*a(n-6) - 35*a(n-7) - 35*a(n-8) + 35*a(n-9) + 21*a(n-10) - 21*a(n-11) - 7*a(n-12) + 7*a(n-13) + a(n-14) - a(n-15) for n>15.
(End)

A294274 Sum of the seventh powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 129, 2444, 18700, 99012, 376761, 1216688, 3297456, 8158550, 18080425, 37847532, 73399404, 136971464, 241561425, 414517952, 680856256, 1095977898, 1703414961, 2607286700, 3877286700, 5697862412, 8172733129, 11613390384, 16164030000, 22330294142
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), A294271 (k=4), A294272 (k=5), A294273 (k=6), this sequence (k=7), A294275 (k=8), A294276 (k=9), A294279 (k=10).

Programs

  • Magma
    [n^2*(64 - 224*n^2 + 448*n^4 - 381*n^5 + 96*n^6 + 3*n^5*(-1)^n)/768 : n in [1..50]]; // Wesley Ivan Hurt, Jul 12 2025
  • Mathematica
    Table[Sum[i^7 + (n - i)^7, {i, Floor[n/2]}], {n, 40}]
  • PARI
    concat(0, Vec(x^2*(2 + 127*x + 2299*x^2 + 15240*x^3 + 61848*x^4 + 151257*x^5 + 262139*x^6 + 306832*x^7 + 260914*x^8 + 151257*x^9 + 60777*x^10 + 15240*x^11 + 2180*x^12 + 127*x^13+ x^14) / ((1 - x)^9*(1 + x)^8) + O(x^40))) \\ Colin Barker, Nov 20 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^7 + (n-i)^7.
From Colin Barker, Nov 20 2017: (Start)
G.f.: x^2*(2 + 127*x + 2299*x^2 + 15240*x^3 + 61848*x^4 + 151257*x^5 + 262139*x^6 + 306832*x^7 + 260914*x^8 + 151257*x^9 + 60777*x^10 + 15240*x^11 + 2180*x^12 + 127*x^13+ x^14) / ((1 - x)^9*(1 + x)^8).
a(n) = a(n-1) + 8*a(n-2) - 8*a(n-3) - 28*a(n-4) + 28*a(n-5) + 56*a(n-6) - 56*a(n-7) - 70*a(n-8) + 70*a(n-9) + 56*a(n-10) - 56*a(n-11) - 28*a(n-12) + 28*a(n-13) + 8*a(n-14) - 8*a(n-15) - a(n-16) + a(n-17) for n>17.
(End)
a(n) = n^2*(64 - 224*n^2 + 448*n^4 - 381*n^5 + 96*n^6 + 3*n^5*(-1)^n)/768. - Wesley Ivan Hurt, Jul 12 2025

A294275 Sum of the eighth powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 257, 7074, 72354, 469540, 2142595, 7972932, 24684612, 68121958, 167731333, 383769830, 812071910, 1633567432, 3103591687, 5683259528, 9961449608, 16980253770, 27957167625, 45040730666, 70540730666, 108577948908, 163239463563, 241980430540, 351625763020
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), A294271 (k=4), A294272 (k=5), A294273 (k=6), A294274 (k=7), this sequence (k=8), A294276 (k=9), A294279 (k=10).

Programs

  • Magma
    [-n*(768-5120*n^2+10752*n^4-15360*n^6+11475*n^7-2560*n^8-45*n^7*(-1)^n)/23040 : n in [1..50]]; // Wesley Ivan Hurt, Jul 12 2025
  • Mathematica
    Table[Sum[i^8 + (n - i)^8, {i, Floor[n/2]}], {n, 40}]
  • PARI
    concat(0, Vec( x^2*(2 + 255*x + 6799*x^2 + 62985*x^3 + 335905*x^4 + 1094715*x^5 + 2500907*x^6 + 3982845*x^7 + 4690633*x^8 + 3982845*x^9 + 2489581*x^10 + 1094715*x^11 + 331859*x^12 + 62985*x^13 + 6553*x^14 + 255*x^15 + x^16) / ((1 - x)^10*(1 + x)^9) + O(x^40))) \\ Colin Barker, Nov 20 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^8 + (n-i)^8.
From Colin Barker, Nov 20 2017: (Start)
G.f.: x^2*(2 + 255*x + 6799*x^2 + 62985*x^3 + 335905*x^4 + 1094715*x^5 + 2500907*x^6 + 3982845*x^7 + 4690633*x^8 + 3982845*x^9 + 2489581*x^10 + 1094715*x^11 + 331859*x^12 + 62985*x^13 + 6553*x^14 + 255*x^15 + x^16) / ((1 - x)^10*(1 + x)^9).
a(n) = a(n-1) + 9*a(n-2) - 9*a(n-3) - 36*a(n-4) + 36*a(n-5) + 84*a(n-6) - 84*a(n-7) - 126*a(n-8) + 126*a(n-9) + 126*a(n-10) - 126*a(n-11) - 84*a(n-12) + 84*a(n-13) + 36*a(n-14) - 36*a(n-15) - 9*a(n-16) + 9*a(n-17) + a(n-18) - a(n-19) for n>19.
(End)
a(n) = -n*(768-5120*n^2+10752*n^4-15360*n^6+11475*n^7-2560*n^8-45*n^7*(-1)^n)/23040. - Wesley Ivan Hurt, Jul 12 2025

A294276 Sum of the ninth powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 513, 20708, 282340, 2255148, 12313161, 52928912, 186884496, 576258110, 1574304985, 3942330372, 9092033028, 19736886008, 40357579185, 78935156288, 147520415296, 266495712282, 464467582161, 788155279940, 1299155279940, 2095793274212, 3300704544313
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), A294271 (k=4), A294272 (k=5), A294273 (k=6), A294274 (k=7), A294275 (k=8), this sequence (k=9), A294279 (k=10).

Programs

  • Magma
    [-n^2*(768-2560*n^2+3584*n^4-3840*n^6+2555*n^7-512*n^8-5*n^7*(-1)^n)/5120 : n in [1..50]]; // Wesley Ivan Hurt, Jul 12 2025
  • Mathematica
    Table[Sum[i^9 + (n - i)^9, {i, Floor[n/2]}], {n, 40}]
  • PARI
    concat(0, Vec(x^2*(2 + 511*x + 20175*x^2 + 256522*x^3 + 1770948*x^4 + 7464688*x^5 + 21796206*x^6 + 45087574*x^7 + 69569484*x^8 + 79813090*x^9 + 69501528*x^10 + 45087574*x^11 + 21722580*x^12 + 7464688*x^13 + 1756842*x^14 + 256522*x^15 + 19674*x^16 + 511*x^17+ x^18) / ((1 - x)^11*(1 + x)^10) + O(x^40))) \\ Colin Barker, Nov 21 2017
    

Formula

a(n) = Sum_{i=1..floor(n/2)} i^9 + (n-i)^9.
From Colin Barker, Nov 21 2017: (Start)
G.f.: x^2*(2 + 511*x + 20175*x^2 + 256522*x^3 + 1770948*x^4 + 7464688*x^5 + 21796206*x^6 + 45087574*x^7 + 69569484*x^8 + 79813090*x^9 + 69501528*x^10 + 45087574*x^11 + 21722580*x^12 + 7464688*x^13 + 1756842*x^14 + 256522*x^15 + 19674*x^16 + 511*x^17+ x^18) / ((1 - x)^11*(1 + x)^10).
a(n) = a(n-1) + 10*a(n-2) - 10*a(n-3) - 45*a(n-4) + 45*a(n-5) + 120*a(n-6) - 120*a(n-7) - 210*a(n-8) + 210*a(n-9) + 252*a(n-10) - 252*a(n-11) - 210*a(n-12) + 210*a(n-13) + 120*a(n-14) - 120*a(n-15) - 45*a(n-16) + 45*a(n-17) + 10*a(n-18) - 10*a(n-19) - a(n-20) + a(n-21) for n>21.
(End)
a(n) = -n^2*(768-2560*n^2+3584*n^4-3840*n^6+2555*n^7-512*n^8-5*n^7*(-1)^n)/5120. - Wesley Ivan Hurt, Jul 12 2025

A294279 Sum of the tenth powers of the parts in the partitions of n into two parts.

Original entry on oeis.org

0, 2, 1025, 61098, 1108650, 10933324, 71340451, 354864276, 1427557524, 4924107550, 14914341925, 40912232702, 102769130750, 240910097848, 529882277575, 1107606410024, 2206044295976, 4225524980826, 7792505423049, 13933571680850, 24163571680850, 40869390083652
Offset: 1

Views

Author

Wesley Ivan Hurt, Oct 26 2017

Keywords

Crossrefs

Sum of k-th powers of the parts in the partitions of n into two parts for k=0..10: A052928 (k=0), A093353 (k=1), A226141 (k=2), A294270 (k=3), A294271 (k=4), A294272 (k=5), A294273 (k=6), A294274 (k=7), A294275 (k=8), A294276 (k=9), this sequence (k=10).

Programs

  • Magma
    [n*(5120-33792*n^2+67584*n^4-67584*n^6+56320*n^8-33759*n^9+6144*n^10+33*n^9*(-1)^n)/67584 : n in [1..50]]; // Wesley Ivan Hurt, Jul 13 2025
  • Maple
    f:= proc(n)
    if n::even then (1/66)*n*(6*n^10-(16863/512)*n^9+55*n^8-66*n^6+66*n^4-33*n^2+5)
      else (1/66*(n-1))*n*(2*n-1)*(n^2-n-1)*(3*n^6-9*n^5+2*n^4+11*n^3+3*n^2-10*n-5)
    fi end proc:
    map(f, [$1..50]); # Robert Israel, Oct 27 2017
  • Mathematica
    Table[Sum[i^10 + (n - i)^10, {i, Floor[n/2]}], {n, 30}]

Formula

a(n) = Sum_{i=1..floor(n/2)} i^10 + (n-i)^10.
From Robert Israel, Oct 27 2017: (Start)
a(2*k) = (6144*k^10-16863*k^9+14080*k^8-4224*k^6+1056*k^4-132*k^2+5)*k/33.
a(2*k+1) = (6144*k^10+16896*k^9+14080*k^8-4224*k^6+1056*k^4-132*k^2+5)*k/33.
G.f.: x^2*(x^20+1023*x^19+59039*x^18+1036299*x^17+9117154*x^16+48940320*x^15
+178348744*x^14+465661416*x^13+907378474*x^12+1340492142*x^11+1528402822*x^10
+1340492142*x^9+908233636*x^8+465661416*x^7+178756096*x^6+48940320*x^5
+9163981*x^4+1036299*x^3+60051*x^2+1023*x+2)/((x^2-1)^11*(x-1)). (End)
a(n) = n*(5120-33792*n^2+67584*n^4-67584*n^6+56320*n^8-33759*n^9+6144*n^10+33*n^9*(-1)^n)/67584. - Wesley Ivan Hurt, Jul 13 2025
a(n) = a(n-1) + 11*a(n-2) - 11*a(n-3) - 55*a(n-4) + 55*a(n-5) + 165*a(n-6) - 165*a(n-7) - 330*a(n-8) + 330*a(n-9) + 462*a(n-10) - 462*a(n-11) - 462*a(n-12) + 462*a(n-13) + 330*a(n-14) - 330*a(n-15) - 165*a(n-16) + 165*a(n-17) + 55*a(n-18) - 55*a(n-19) - 11*a(n-20) + 11*a(n-21) + a(n-22) - a(n-23). - Wesley Ivan Hurt, Jul 13 2025
Showing 1-9 of 9 results.