Question: Strange !! Maple makes mistakes ! What am I doing wrong ?

Already posted this in my previous thread, but as it is different from the initial topic thought I would post it seperately So I'm playing with integer series and polynoms and it looks like Maple makes mistakes !! What am I doing wrong in below sheet ? View 3284_test2.mw on MapleNet or Download 3284_test2.mw
View file details The result provided by Maple is obviously wrong as all these functions should be positive. and using below Python code to get the result :
def D1(p):
    return 1

def D2(p):
    if p<2:
        print "D2 error" , p
    else:
        return p-1

def D3(p):
    r=0
    if p<3:
        print "D3 error" , p
    else :
        i=1
        while i <= p-2:
            r+=D2(p-i)
            i+=1
        return r

def D4(p):
    r=0
    if p<4:
        print "D4 error" , p
    else :
        i=1
        while i <= p-3:
            r+=D3(p-i)
            i+=1
        return r
            
def D5(p):
    r=0
    if p
I get D5(14)= 715 but not the nice polynoms to express the functions ... Any info on what's wrong with the sheet ?
Please Wait...