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.
%I A048396 #34 Nov 02 2024 19:35:13 %S A048396 0,27,315,1638,5670,15345,35217,71820,134028,233415,384615,605682, %T A048396 918450,1348893,1927485,2689560,3675672,4931955,6510483,8469630, %U A048396 10874430,13796937,17316585,21520548,26504100,32370975,39233727,47214090,56443338,67062645,79223445 %N A048396 Sums of consecutive noncubes. %C A048396 Relation with triangular numbers: a(n) = 3*((n^3+1) + ((n+1)^3-1)) * A000217(n). Example: a(3) = 3*(first term + last term)*A000217(3) = 3*(28+63)*6 = 1638. %H A048396 Vincenzo Librandi, <a href="/A048396/b048396.txt">Table of n, a(n) for n = 0..1000</a> %H A048396 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (6,-15,20,-15,6,-1). %F A048396 a(n) = ( 6n^5 + 15n^4 + 18n^3 + 12n^2 + 3n ) / 2. %F A048396 G.f.: 9*x*(1+x)*(3+14*x+3*x^2)/(1-x)^6. - _Colin Barker_, Mar 15 2012 %F A048396 a(n) = 6*a(n-1)-15*a(n-2)+20*a(n-3)-15*a(n-4)+6*a(n-5)-a(n-6). - _Wesley Ivan Hurt_, Apr 10 2015 %e A048396 Between 3^3 and 4^3 we have: 28 + 29 + ... + 62 + 63 = 1638 = a(3). %p A048396 A048396:=n->(6*n^5+15*n^4+18*n^3+12*n^2+3*n)/2: seq(A048396(n), n=0..50); # _Wesley Ivan Hurt_, Apr 10 2015 %t A048396 Table[Total[Range[n^3+1,(n+1)^3-1]], {n,0,30}] (* _Harvey P. Dale_, Jan 08 2011 *) %t A048396 LinearRecurrence[{6,-15,20,-15,6,-1},{0,27,315,1638,5670,15345},40] (* _Harvey P. Dale_, Nov 02 2024 *) %o A048396 (Magma) [(6*n^5+15*n^4+18*n^3+12*n^2+3*n)/2 : n in [0..50]]; // _Wesley Ivan Hurt_, Apr 10 2015 %o A048396 (PARI) a(n)=(6*n^5+15*n^4+18*n^3+12*n^2+3*n)/2 \\ _Charles R Greathouse IV_, Oct 07 2015 %o A048396 (Python) %o A048396 def A048396(n): return n*(n*(n*(n*(6*n + 15) + 18) + 12) + 3)>>1 # _Chai Wah Wu_, Sep 04 2024 %Y A048396 Cf. A000217, A048395, A048397. %K A048396 nonn,easy,nice %O A048396 0,2 %A A048396 _Patrick De Geest_, Mar 15 1999