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

 

Logo

The submissions stack has been unacceptably high for several months now. Please voluntarily restrict your submissions and please help with the editing. (We don't want to have to impose further limits.)

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; 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: A196493 A251634 A196989 * A015109 A157636 A086626

Adjacent sequences:  A034868 A034869 A034870 * A034872 A034873 A034874

KEYWORD

nonn,tabf,easy,changed

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 August 28 10:51 EDT 2015. Contains 261120 sequences.