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!)
A106595 Triangle read by rows: odd-numbered rows of A106580. 3

%I #12 Sep 08 2021 01:27:46

%S 1,1,1,2,3,3,1,2,5,9,12,12,1,2,5,13,26,41,53,53,1,2,5,13,34,73,129,

%T 194,247,247,1,2,5,13,34,89,201,386,645,945,1192,1192,1,2,5,13,34,89,

%U 233,546,1117,2021,3266,4705,5897,5897,1,2,5,13,34,89,233,610,1469,3157,6082,10593,16737,23826,29723,29723

%N Triangle read by rows: odd-numbered rows of A106580.

%H G. C. Greubel, <a href="/A106595/b106595.txt">Rows n = 0..50 of the irregular triangle, flattened</a>

%F T(n, k) = A106580(2*n+1, k).

%e Irregular triangle begins as:

%e 1, 1;

%e 1, 2, 3, 3;

%e 1, 2, 5, 9, 12, 12;

%e 1, 2, 5, 13, 26, 41, 53, 53;

%e 1, 2, 5, 13, 34, 73, 129, 194, 247, 247;

%e 1, 2, 5, 13, 34, 89, 201, 386, 645, 945, 1192, 1192;

%e 1, 2, 5, 13, 34, 89, 233, 546, 1117, 2021, 3266, 4705, 5897, 5897;

%p A106580 := proc(n,k) option remember ; if k =0 then 1 ; else A106580(n,k-1)+add(A106580(n-2*i,k-i),i=1..min(k,floor(n/2),n-k)) ; fi ; end: for n from 1 to 13 by 2 do for k from 0 to n do printf("%d, ",A106580(n,k)) ; od ; od ; # _R. J. Mathar_, May 02 2007

%t T[n_, k_]:= T[n, k]= If[k==0, 1, T[n, k-1] + Sum[T[n-2*j, k-j], {j, 1, Min[k, Floor[n/2], n-k]}]]; (* T(n, k) = A106580; T(2*n+1, k) = A106595 *)

%t Table[T[2*n+1, k], {n, 0, 12}, {k, 0, 2*n+1}]//Flatten (* _G. C. Greubel_, Sep 08 2021 *)

%o (Sage)

%o @CachedFunction

%o def T(n, k): # T(n, k) = A106580; T(2*n+1, k) = A106595

%o if (k<0): return 0

%o elif (k==0): return 1

%o else: return T(n, k-1) + sum( T(n-2*j, k-j) for j in (1..min(k, n//2, n-k)))

%o flatten([[T(2*n+1, k) for k in (0..2*n+1)] for n in (0..12)]) # _G. C. Greubel_, Sep 08 2021

%Y Cf. A106580, A106585.

%K nonn,tabf,easy

%O 0,4

%A _N. J. A. Sloane_, May 30 2005

%E More terms from _R. J. Mathar_, May 02 2007

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 May 9 10:59 EDT 2024. Contains 372350 sequences. (Running on oeis4.)