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.

A158527 Sum of squares of consecutive positive noncubes.

This page as a plain text file.
%I A158527 #15 Nov 11 2024 13:21:41
%S A158527 139,5997,78414,553810,2677065,10009839,31098172,84004164,203427495,
%T A158527 451263505,931565514,1811000022,3346004389,5917977555,10077955320,
%U A158527 16602342664,26561396547,41402273589,63048577990,94018466010
%N A158527 Sum of squares of consecutive positive noncubes.
%H A158527 <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (9,-36,84,-126,126,-84,36,-9,1).
%F A158527 a(n) = (1/2)*n*(1 + n)*(1 + 9*n + 27*n^2 + 42*n^3 + 36*n^4 + 18*n^5 + 6*n^6).
%F A158527 G.f.: -x*(139*x^6+4746*x^5+29445*x^4+52300*x^3+29445*x^2+4746*x+139)/(x-1)^9.
%e A158527 a(1) = 139 = 2^2+...+7^2, a(2) = 9^2+...+26^2.
%t A158527 LinearRecurrence[{9,-36,84,-126,126,-84,36,-9,1},{139,5997,78414,553810,2677065,10009839,31098172,84004164,203427495},20] (* _Harvey P. Dale_, Nov 11 2024 *)
%o A158527 (Python)
%o A158527 def A158527(n): return n*(n*(n*(n*(n*(n*(n*(6*(n + 4)) + 54) + 78) + 69) + 36) + 10) + 1)>>1 # _Chai Wah Wu_, Sep 03 2024
%Y A158527 Cf. A048396 (sum of consecutive noncubes).
%K A158527 nonn,easy
%O A158527 1,1
%A A158527 _Zak Seidov_, Mar 20 2009