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!)
A100505 Bisection of A001523. 3

%I #19 Apr 04 2023 07:46:37

%S 1,2,8,27,79,209,512,1183,2604,5504,11240,22277,43003,81098,149769,

%T 271404,483439,847681,1464999,2498258,4207764,7005688,11538936,

%U 18814423,30387207,48641220,77205488,121567834,189974638,294742961,454164484,695254782,1057704607

%N Bisection of A001523.

%H Alois P. Heinz, <a href="/A100505/b100505.txt">Table of n, a(n) for n = 0..5000</a>

%p seq(coeff(convert(series(1+add(-(-1)^k*x^(k*(k+1)/2),k=1..100)/(mul(1-x^k,k=1..100))^2,x,100),polynom),x,2*n),n=0..45); # (C. Ronaldo)

%p # second Maple program:

%p b:= proc(n, i) option remember;

%p `if`(i>n, 0, `if`(irem(n, i)=0, 1, 0)+

%p add(b(n-i*j, i+1)*(j+1), j=0..n/i))

%p end:

%p a:= n-> `if`(n=0, 1, b(2*n, 1)):

%p seq(a(n), n=0..60); # _Alois P. Heinz_, Mar 26 2014

%t max = 70; s = 1 + Sum[(-1)^(k+1)*q^(k*(k+1)/2), {k, 1, Sqrt[2 max] // Ceiling}]/QPochhammer[q]^2 + O[q]^max // Normal; Partition[(List @@ s) /. q -> 1, 2][[All, 1]] (* _Jean-François Alcover_, Apr 04 2017 *)

%o (Magma)

%o m:=200;

%o R<x>:=PowerSeriesRing(Integers(), m);

%o b:=Coefficients(R!( 1 + (&+[ x^n*(1-x^n)/(&*[(1-x^j)^2: j in [1..n]]): n in [1..m+2]]) ));

%o A100505:= func< n | b[2*n+1] >;

%o [A100505(n): n in [0..80]]; // _G. C. Greubel_, Apr 03 2023

%o (SageMath)

%o @CachedFunction

%o def b(n, k): # Indranil Ghosh's code of A001523

%o if k>n: return 0

%o if n%k==0: x=1

%o else: x=0

%o return x + sum(b(n-k*j, k+1)*(j+1) for j in range(n//k + 1))

%o def A100505(n): return 1 if n==0 else b(2*n, 1)

%o [A100505(n) for n in range(81)] # _G. C. Greubel_, Apr 03 2023

%Y Cf. A001523, A100506.

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_, Nov 24 2004

%E More terms from C. Ronaldo (aga_new_ac(AT)hotmail.com), Jan 19 2005

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