loda-cpp
loda-cpp copied to clipboard
Support formula generation for A000033
When trying to generate a formula for A000033, the formula generator takes quite long about 30 seconds and then return an error that it cannot generate a formula for this program. Find out whether it is indeed too complex and if we can enhance the formula generator to support it.
; A000033: Coefficients of ménage hit polynomials.
#offset 1
mov $3,2
mov $4,3
mov $5,4
mov $6,40
mov $7,210
mov $8,1477
mov $9,11672
sub $0,1
lpb $0
mul $2,-2
rol $2,8
mov $11,$1
mul $11,-2
sub $11,1
mov $10,$2
mul $10,$11
mov $11,$1
mul $11,-3
add $11,6
add $9,$10
mov $10,$3
mul $10,$11
mov $11,$1
mul $11,3
add $11,24
add $9,$10
mov $10,$4
mul $10,$11
mov $11,$1
mul $11,10
add $11,50
add $9,$10
mov $10,$5
mul $10,$11
mov $11,$1
mul $11,11
add $11,62
add $9,$10
mov $10,$6
mul $10,$11
mov $11,$1
mul $11,7
add $11,44
add $9,$10
mov $10,$7
mul $10,$11
mov $11,$1
mul $11,2
add $11,11
add $9,$10
mov $10,$8
mul $10,$11
add $9,$10
div $9,2
sub $0,1
add $1,1
lpe
mov $0,$2