Results 1 to 3 of 3

Math Help - f: N to N, f(x) = floor(x/3)

  1. #1
    Junior Member
    Joined
    Jul 2008
    Posts
    38

    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!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Grandad's Avatar
    Joined
    Dec 2008
    From
    South Coast of England
    Posts
    2,570
    Thanks
    1
    Hello tcRom
    Quote Originally Posted by tcRom View Post
    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?

    Grandad
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Jul 2008
    Posts
    38
    Perfect, that's what I was looking for and you've confirmed what I was leaning towards. So, yes, I am okay now. Thank you for the help

    ~tc
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. [SOLVED] Floor Function
    Posted in the Number Theory Forum
    Replies: 3
    Last Post: November 14th 2010, 12:44 PM
  2. Floor !
    Posted in the Algebra Forum
    Replies: 1
    Last Post: January 30th 2010, 08:02 AM
  3. Floor function
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: June 23rd 2009, 11:03 PM
  4. floor equality
    Posted in the Calculus Forum
    Replies: 3
    Last Post: April 25th 2009, 01:20 AM
  5. with floor functions
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: June 8th 2008, 10:43 AM

Search Tags


/mathhelpforum @mathhelpforum