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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077138 a(1) = 1, then if n is even multiply it by the previous term else add to get the next term. 1
0, 1, 2, 5, 20, 25, 150, 157, 1256, 1265, 12650, 12661, 151932, 151945, 2127230, 2127245, 34035920, 34035937, 612646866, 612646885, 12252937700, 12252937721, 269564629862, 269564629885, 6469551117240, 6469551117265, 168208329048890 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

FORMULA

a(1) = 1, a(2n) = 2n*a(2n-1) and a(2n+1) = a(2n) +(2n +1).

PROG

(PARI) a(n)=if(n<0, 0, if(n%2, n+a(n-1), n*a(n-1)))

CROSSREFS

Cf. A047905.

Sequence in context: A177494 A136900 A136898 * A192164 A056726 A176042

Adjacent sequences:  A077135 A077136 A077137 * A077139 A077140 A077141

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Oct 30 2002

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

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

Last modified February 16 03:44 EST 2012. Contains 205860 sequences.