0%

Problem 555


Problem 555


McCarthy 91 function

The McCarthy 91 function is defined as follows:

M91(n)={n10if n>100M91(M91(n+11))if 0n100

We can generalize this definition by abstracting away the constants into new variables:

Mm,k,s(n)={nsif n>mMm,k,s(Mm,k,s(n+k))if 0nm

This way, we have M91=M100,11,10.

Let Fm,k,s be the set of fixed points of Mm,k,s. That is,

Fm,k,s={nN,|,Mm,k,s(n)=n}

For example, the only fixed point of M91 is n=91. In other words, F100,11,10={91}.

Now, define SF(m,k,s) as the sum of the elements in Fm,k,s and let S(p,m)=1s<kpSF(m,k,s).

For example, S(10,10)=225 and S(1000,1000)=208724467.

Find S(106,106).


麦卡锡91函数

麦卡锡91函数的定义如下:

M91(n)={n10if n>100M91(M91(n+11))if 0n100

通过将上述定义中的常数抽象为变量,我们可以将这个定义一般化:

Mm,k,s(n)={nsif n>mMm,k,s(Mm,k,s(n+k))if 0nm

这样一来,我们有M91=M100,11,10

Fm,k,sMm,k,s的不动点所构成的集合,也就是说:

Fm,k,s={nN,|,Mm,k,s(n)=n}

例如,M91只有一个不动点n=91,换言之就是F100,11,10={91}

定义SF(m,k,s)Fm,k,s中元素的和,并记S(p,m)=1s<kpSF(m,k,s)

已知S(10,10)=225以及S(1000,1000)=208724467

S(106,106)


Gitalking ...