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!)
A025115 a(n) = s(1)*t(n) + s(2)*t(n-1) + ... + s(k)*t(n-k+1), where k = floor(n/2), s = A005408 (odd natural numbers), t = A023533. 1

%I #9 Sep 15 2022 06:24:35

%S 0,0,1,3,5,0,0,0,1,3,5,7,9,11,13,15,17,0,1,3,5,7,9,11,13,15,17,19,21,

%T 23,25,27,29,32,36,40,44,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,

%U 39,41,44,48,52,56,60,64,68,72,76,80,84,88,92,27,29,31,33,35,37,39,41,43,45,47,49,51,53

%N a(n) = s(1)*t(n) + s(2)*t(n-1) + ... + s(k)*t(n-k+1), where k = floor(n/2), s = A005408 (odd natural numbers), t = A023533.

%H G. C. Greubel, <a href="/A025115/b025115.txt">Table of n, a(n) for n = 1..5000</a>

%t b[j_]:= b[j]= Sum[KroneckerDelta[j, Binomial[m+2,3]], {m,0,15}];

%t A025115[n_]:= A025115[n]= Sum[(2*(n-j+2)-1)*b[j], {j, Floor[(n+4)/2], n+1}];

%t Table[A025115[n], {n,100}] (* _G. C. Greubel_, Sep 13 2022 *)

%o (Magma)

%o A023533:= func< n | Binomial(Floor((6*n-1)^(1/3)) +2, 3) ne n select 0 else 1 >;

%o A025115:= func< n | (&+[(2*k-1)*A023533(n+2-k): k in [1..Floor((n+1)/2)]]) >;

%o [A025115(n): n in [1..100]]; // _G. C. Greubel_, Sep 13 2022

%o (SageMath)

%o @CachedFunction

%o def b(j): return sum(bool(j==binomial(m+2,3)) for m in (0..10))

%o @CachedFunction

%o def A025115(n): return sum((2*(n-j+2)-1)*b(j) for j in (((n+4)//2)..n+1))

%o [A025115(n) for n in (1..100)] # _G. C. Greubel_, Sep 13 2022

%Y Cf. A005408, A023533.

%K nonn

%O 1,4

%A _Clark Kimberling_

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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)