login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A034871 Odd-numbered rows of Pascal's triangle. 2
1, 1, 1, 3, 3, 1, 1, 5, 10, 10, 5, 1, 1, 7, 21, 35, 35, 21, 7, 1, 1, 9, 36, 84, 126, 126, 84, 36, 9, 1, 1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1, 1, 13, 78, 286, 715, 1287, 1716, 1716, 1287, 715, 286, 78, 13, 1, 1, 15, 105, 455, 1365, 3003, 5005 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

Table of n, a(n) for n=0..62.

PROG

(Haskell)

a034871 n = a034871_list !! n

a034871_list = concat $ map ([1, 1] ^) [1, 3..]

instance Num a => Num [a] where

   fromInteger k = [fromInteger k]

   (p:ps) + (q:qs) = p + q : ps + qs

   ps + qs         = ps ++ qs

   (p:ps) * qs'@(q:qs) = p * q : ps * qs' + [p] * qs

   _ * _               = []

-- Reinhard Zumkeller, Apr 02 2011

CROSSREFS

Cf. A007318, A034870.

Sequence in context: A132729 A196493 A196989 * A015109 A157636 A086626

Adjacent sequences:  A034868 A034869 A034870 * A034872 A034873 A034874

KEYWORD

nonn,tabl,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified November 27 16:30 EST 2014. Contains 250240 sequences.