Double recursive relation and normal form

16 views
Skip to first unread message

Christophe Bal

unread,
Feb 3, 2017, 6:56:58 PM2/3/17
to sympy-list
Hello.

I have the following function on the set of natural.

def B(n):
    if n == 1:
        return 1
    return n * B(n - 1) + n*(n-1)/2*C(n - 1)
def C(n):
    if n == 1:
        return 1
    return n * B(n - 1) + n*(n-1)*C(n - 1)

for k in range(2, 6):
    print C(k)

Can SymPy gives me a normal form if it exists ? 

Christophe BAL
Enseignant de mathématiques en Lycée et développeur Python amateur
---
French teacher of math in a high school and amateur Python developer
Reply all
Reply to author
Forward
0 new messages