Thread Closed

Couple questions

 
Share Thread Thread Tools
Aug6-08, 07:29 PM   #1
 

Couple questions


Is there a better way to write this:

[tex]g(x, n) = D(\frac{x}{n})*(n)[/tex]

Where D(h), unless already a decimal, expands h into a sum of its places i.e. 47=40+7, then subtracts all of the terms that are greater than or equal to one.



Also, if I have a function, say [tex]f(x) = \sqrt{x}[/tex], and I only wanted the integer values of x that made f(x) an integer, is there a different way of writing this, where I wouldn't have to plug in and check?(this goes for any function, where irrationality is possible or not)
 
PhysOrg.com
PhysOrg
mathematics news on PhysOrg.com

>> Mathematicians analyze social divisions using cell phone data
>> Can math models of gaming strategies be used to detect terrorism networks?
>> Mathematician proves there are infinitely many pairs of prime numbers less than 70 million units apart
Aug6-08, 09:46 PM   #2
 
g(x,n) is the remainder of [tex]\frac{x}{n}[/tex], if x and n are integers.



For f(x)=[tex]\sqrt{x}[/tex], it is possible [x=(f(x))2, f(x)>0; i.e. if f(x) is an integer, then x is an integer].

Another example would be f(x) = loga (x) [a>0 is an integer]; with x=af(x), so if f(x) is an integer, then x is also an integer.

But it is not possible for EVERY function, such as ln(x), sin(x), etc. For these, you would need to substitute and find out if they work (if there were an integer that would yield an integer value).
 
Aug6-08, 10:54 PM   #3
 
Quote by ForMyThunder View Post
g(x,n) is the remainder of [tex]\frac{x}{n}[/tex], if x and n are integers.
Is there any special notation to represent the remainder of integer division?

Is there any special notation (I thought there was here) to represent the remainder of integer division multiplied by the denominator integer?
 
Aug7-08, 12:34 AM   #4
 

Couple questions


Quote by epkid08 View Post
Is there any special notation to represent the remainder of integer division?

Is there any special notation (I thought there was here) to represent the remainder of integer division multiplied by the denominator integer?
a mod b
gives the remainder when a is divided by b
 
Aug7-08, 12:41 AM   #5
 
To put it another way, [tex] a \equiv b (mod m) \Leftrightarrow m|(a-b) \Leftrightarrow a = km + b [/tex]

Thus, a and b have the same remainder upon division by m.
 
Aug7-08, 08:05 AM   #6
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
Quote by ForMyThunder View Post
a mod b
gives the remainder when a is divided by b
Yes, and that's sometimes written a%b, just like [itex]a\times b[/itex] is sometimes written a*b.
 
Aug7-08, 02:39 PM   #7
 
Quote by CRGreathouse View Post
Yes, and that's sometimes written a%b, just like [itex]a\times b[/itex] is sometimes written a*b.
Isn't the a%b notation usually used in computer programming? I just didn't think they used it much in mathematics.
 
Aug7-08, 03:01 PM   #8
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
Quote by ForMyThunder View Post
Isn't the a%b notation usually used in computer programming? I just didn't think they used it much in mathematics.
% and * are both used in programming, in emails, and other places where a rich symbol set is not easily available.
 
Thread Closed
Thread Tools


Similar Threads for: Couple questions
Thread Forum Replies
A couple of questions Introductory Physics Homework 9
Couple of XP questions Computing & Technology 13
a couple of questions Introductory Physics Homework 1
A Couple Questions......... General Astronomy 3
a couple of questions Introductory Physics Homework 1