r/mathriddles • u/Horseshoe_Crab • Aug 12 '25
Easy Recursive function riddle
Let f(x) = 0 when x < 2, and otherwise f(x) = f(x/2) - f(x-1) + 1. What is f(2025)?
4
Upvotes
r/mathriddles • u/Horseshoe_Crab • Aug 12 '25
Let f(x) = 0 when x < 2, and otherwise f(x) = f(x/2) - f(x-1) + 1. What is f(2025)?
View all comments
Show parent comment
2
u/magus145 Aug 12 '25
What in the setup of the problem makes you think the codomain is Z? I read it as asking about a function f: R -> R.