The function that assigns to each positive integer its largest decimal digit... Find the domain and the range
Well, as you said, it only assigns a value to each positive integer, so I guess the domain is the set of positive integers \[\huge \mathbb{Z}^+\]
That i can get but what would be the range? if there is any
Of course there is :) Keyword here is that the value assigned to any positive integer is the value of its largest digit. So it can only be a digit, right?
Digit --> single digit number Just to be clear. for instance f(362) = 6 because the largest digit is 6.
Ohhh I( get it now!!!
Remember, your range may be single digits, but 0 is not included :) Think about it.. there is no positive integer where 0 is its largest digit, right? ;)
but it says its largest decimal digit wouldnt that change everything
It wouldn't, it just takes the largest digit.
true
ohhh i see okay okay this makes perfect sense thanks alot man!
So your range is this finite set {1,2,3,4,5,6,7,8,9} :)
No problem :)
SO the domain and range would just about be the same
No, far from it, the domain can be ANY positive integer at all, which means there are infinitely many possibilities, while your range can only ever be one of the nine nonzero digits :)
Ohhh yeah true i overlooked that!
Okay this makes sense now
perfect
Awesome :) Don't I just love it when things make sense :)
we both do lol
Join our real-time social learning platform and learn together with your friends!