0%

Problem 809


Problem 809


Rational Recurrence Relation

The following is a function defined for all positive rational values of x.
f(x)={xx is integralf(11x)x<1f(1xx1+f(x1))otherwise

For example, f(3/2)=3, f(1/6)=65533 and f(13/10)=7625597484985.

Find f(22/7). Give your answer modulo 1015.


有理数递归关系式

如下是定义在所有正有理数x上的函数:
f(x)={xx是整数f(11x)x<1f(1xx1+f(x1))其余情况

例如,f(3/2)=3f(1/6)=65533f(13/10)=7625597484985

f(22/7),并将你的答案对1015取余。


Gitalking ...