# Thread: f: N to N, f(x) = floor(x/3)

1. ## f: N to N, f(x) = floor(x/3)

I understand this function on a basic level but need help with it in the following context:

Design a URM program that will compute f: N -> N; f(x) = floor(x/3)

The URM program part is fine with me but what is the output of this function? Can someone give me a few outputs for f(x) for say x = 1, 2, 3, 4, 5 at the least so I can get a better idea of things? Thanks a bunch!

2. Hello tcRom
Originally Posted by tcRom
I understand this function on a basic level but need help with it in the following context:

Design a URM program that will compute f: N -> N; f(x) = floor(x/3)

The URM program part is fine with me but what is the output of this function? Can someone give me a few outputs for f(x) for say x = 1, 2, 3, 4, 5 at the least so I can get a better idea of things? Thanks a bunch!
The floor function behaves like the INT() function in Excel and other programming languages. So $f(x)$ is the greatest integer less than or equal to $\frac{x}{3}$. So:

$f(1) = f(2) =0$

$f(3) = f(4) = f(5) = 1$

$f(6) = f(7) = f(8) = 2$

...etc

OK?