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!)
A108040 Reflection of triangle in A008280 in vertical axis. 5

%I #33 Mar 24 2023 23:11:36

%S 1,1,0,0,1,1,2,2,1,0,0,2,4,5,5,16,16,14,10,5,0,0,16,32,46,56,61,61,

%T 272,272,256,224,178,122,61,0,0,272,544,800,1024,1202,1324,1385,1385,

%U 7936,7936,7664,7120,6320,5296,4094,2770,1385,0,0,7936,15872,23536,30656

%N Reflection of triangle in A008280 in vertical axis.

%H Reinhard Zumkeller, <a href="/A108040/b108040.txt">Rows n = 0..120 of triangle, flattened</a>

%H Dominique Foata, Guo-Niu Han, <a href="http://arxiv.org/abs/1601.04371">André Permutation Calculus; a Twin Seidel Matrix Sequence</a>, arXiv:1601.04371 [math.CO], 2016.

%H Peter Luschny, <a href="http://oeis.org/wiki/User:Peter_Luschny/SeidelTransform">An old operation on sequences: the Seidel transform</a>

%H G. Viennot, <a href="http://www.jstor.org/stable/44165433">Interprétations combinatoires des nombres d'Euler et de Genocchi</a>, Séminaire de théorie des nombres, 1980/1981, Exp.No. 11, p. 41, Univ. Bordeaux I, Talence, 1982.

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Boustrophedon_transform">Boustrophedon transform</a>

%H <a href="/index/Bo#boustrophedon">Index entries for sequences related to boustrophedon transform</a>

%F a(n,k) = A008280(n,n-k). - _R. J. Mathar_, May 02 2007

%e This version of the triangle begins:

%e .............1

%e ...........1...0

%e .........0...1...1

%e .......2...2...1...0

%e .....0...2...4...5...5

%e ..16..16..14..10...5...0

%e Kempner tableau begins:

%e ....................1

%e ....................1....0

%e ...............0....1....1

%e ...............2....2....1....0

%e ..........0....2....4....5....5

%e .........16...16...14...10....5...0

%e .....0...16...32...46...56...61..61

%e ...272..272..256..224..178..122..61..0

%e Column 1,1,1,2,4,14,46,224, ... is A005437.

%e Column 1,1,5,10,56,178, ... is A005438.

%p A008281 := proc(h,k) option remember ; if h=1 and k=1 or h=0 then RETURN(1) ; elif h>=1 and k> h then RETURN(0) ; elif h=k then RETURN( A008281(h,h-1)) ; else RETURN( add(A008281(h-1,j),j=h-k..h-1) ) ; fi ; end: A008280 := proc(h,k) if ( h <= 1 ) or ( h mod 2) = 1 then A008281(h,k) ; else A008281(h,h-k) ; fi ; end: A108040 := proc(h,k) A008280(h,h-k) ; end: for h from 0 to 13 do for k from 0 to h do printf("%d, ",A108040(h,k)) ; od ; od ; # _R. J. Mathar_, May 02 2007

%t max = 11; t[0, 0] = 1; t[n_, m_] /; n<m || m<0 = 0; t[n_, m_] := t[n, m] = Sum[t[n-1, n-k], {k, m}]; tri = Table[t[n, m], {n, 0, max}, {m, 0, n}]; A008280 = {Reverse[#[[1]]], #[[2]]}& /@ Partition[tri, 2] // Flatten[#, 1]&; A108040 = Reverse /@ A008280; A108040 // Flatten (* _Jean-François Alcover_, Jan 08 2014 *)

%o (Haskell)

%o a108040 n k = a108040_tabl !! n !! k

%o a108040_row n = a108040_tabl !! k

%o a108040_tabl = ox False a008281_tabl where

%o ox turn (xs:xss) = (if turn then reverse xs else xs) : ox (not turn) xss

%o -- _Reinhard Zumkeller_, Nov 01 2013

%o (Python) # Uses function seidel from A008281.

%o def A108040row(n): return seidel(n)[::-1] if n % 2 else seidel(n)

%o for n in range(8): print(A108040row(n)) # _Peter Luschny_, Jun 01 2022

%Y See A008280 and A008281 for other versions, additional references, formulas, etc.

%K nonn,tabl,easy

%O 0,7

%A _N. J. A. Sloane_

%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 April 24 07:20 EDT 2024. Contains 371921 sequences. (Running on oeis4.)