hw 7 questions

1 view
Skip to first unread message

Crista

unread,
May 21, 2009, 1:33:37 AM5/21/09
to 480-uw09
Problem 2.3
Create a Sage interact that takes as input a positive integer n and
outputs the following numbers: n!, the nth Bernoulli number, the nth
Bell number, the nth Catalan number, the nth Euler number, the nth
Fibonacci number, and the number of partitions of n.

How do I find the nth Bernoulli number, the nth Bell number, the nth
Catalan number, the nth Euler number, the nth Fibonacci number? Is it
on one of the worksheets, and which one?

Problem 3.3
Construct a poset in Sage with elements the positive integers up to 30
and nm if nm (i.e., n divides m). Plot your poset somehow.

What is a poset? Can you give me an example? confused..

Thank you!!
crista

William Stein

unread,
May 21, 2009, 1:41:13 AM5/21/09
to 480-...@googlegroups.com
On Wed, May 20, 2009 at 10:33 PM, Crista <mor...@u.washington.edu> wrote:
>
> Problem 2.3
> Create a Sage interact that takes as input a positive integer n and
> outputs the following numbers: n!, the nth Bernoulli number, the nth
> Bell number, the nth Catalan number, the nth Euler number, the nth
> Fibonacci number, and the number of partitions of n.
>
> How do I find the nth Bernoulli number, the nth Bell number, the nth
> Catalan number, the nth Euler number, the nth Fibonacci number?  Is it
> on one of the worksheets, and which one?

For each, type the first few letters at the sage prompt (all lower
case), and press the tab key.
E.g.,

sage: ber<tab key>

Then use

sage: bernoulli?

to find out how the function works.

>
> Problem 3.3
> Construct a poset in Sage with elements the positive integers up to 30
> and nm if nm (i.e., n divides m).  Plot your poset somehow.
>
> What is a poset?  Can you give me an example?  confused..

Type Poset? in Sage.

William

Reply all
Reply to author
Forward
0 new messages