loda-cpp icon indicating copy to clipboard operation
loda-cpp copied to clipboard

Support formula generation of A379577

Open ckrause opened this issue 1 year ago • 2 comments

; A379577: a(n) = (n!)^n + n^n.
; 2,2,8,243,332032,24883203125,139314069504046656,82606411253903523840823543,6984964247141514123629140377616777216,109110688415571316480344899355894085582848387420489,395940866122425193243875570782668457763038822400000000010000000000,409933016554924328182440935903164918932547530146724293451448320000000000285311670611
mov $1,$0
pow $1,$0
mov $2,1
lpb $0
  mul $2,$0
  add $3,1
  sub $0,1
lpe
mov $0,$2
pow $0,$3
add $0,$1

ckrause avatar Jan 02 '25 18:01 ckrause

I found an IE program for A379577, so you can close this issue

mov $2,1
lpb $0
  sub $0,1
  add $3,1
  mul $2,$3
lpe
mov $0,$2
pow $0,$3
mov $1,$3
pow $1,$3
add $0,$1

loader3229 avatar Jun 05 '25 17:06 loader3229

That's great. I still want to keep this issue open though, because it shows that the the incremental evaluation and the formula generation could be generalized, which could be useful not only for this program but also for others.

ckrause avatar Jun 20 '25 14:06 ckrause