#OK to post homework #Austin DeCicco, 3/1/26, Assignment 11 #BEGIN REFORMATTED C10 ############################################################################################################################################################ with(combinat): #xnk(n,k): The solution of the recurrence xn(n)=(1+add(xn(i)^2,i=0..n-1))/n: From Austin DeCicco and others xnk:=proc(n,k) option remember: local i: if n=0 then 1; else (1+add(xnk(i,k)^k,i=0..n-1))/n; end if; end proc: #xnkC(n,k): clever version of xn(n) only having to remember what happened yesterday From Austin DeCicco and others xnkC:=proc(n,k) option remember: if n=1 then 2; else (xnkC(n-1,k)^(k-1)+n-1)*xnkC(n-1,k)/n; end if; end proc: #xnkP(n,k,p): For a prime p, a fast way to compute xnk(n,k) mod p for n
`), s in S)}; end proc:
#Park(n,k): The set of partitions of n into exactly k parts
Park:=proc(n,k) option remember: local S, k1, S1, s1: if n