Integer values of this expression

Click For Summary
The discussion focuses on finding integer values of the function f(x)=(a+5x)/(6x+1) for given integer a and variable x. The initial approach suggested setting a based on x to achieve integer outputs, but the actual goal is to determine x values that yield integer results for a fixed a. It is noted that trivial solutions exist at x=0 and x=a-1, with the potential for more solutions that come in pairs. A method is proposed to limit the search for solutions to about the square root of a, by checking specific modular conditions. Ultimately, the discussion emphasizes deriving x from n to identify integer values based on the relationship between a and n.
epsi00
Messages
84
Reaction score
0
Is there a simple way to find the integer values of f(x)=(a+5x)/(6x+1) with a, x integers.
 
Physics news on Phys.org
If you pick any integer for x, you can set
a = (6x + 1) n - 5x
to get any integer n you like.

Is that what you meant by "finding the integer values"?
 
CompuChip said:
If you pick any integer for x, you can set
a = (6x + 1) n - 5x
to get any integer n you like.

Is that what you meant by "finding the integer values"?

In fact, it's exactly the opposite I want. a is a given integer and I am looking for the value(s) of x that make f(x) take integer values. It's simple enough for small values of a but for large values, I cannot afford to check the values of x one by one.
 
One thing that may help, other than the obvious observation that x=0 and x=a-1 are always solutions, is that solutions (like these trivial two) come in pairs: that is, if x_0 is a solution, producing an integer n_0 = \frac {5x_0 + a} {6x_0 + 1}, then it's not hard to prove that x_1=n_0 - 1 is a solution too (which will produce the integer n_1=x_0+1).

At least this cuts the search up to something on the order of the sqrt(a): now you need to iterate, from k=1 to a maximum of k=\lfloor \frac {2 + \sqrt{4+6a}} 6 \rfloor, checking if a \equiv k+1 \pmod {6k+1}, in which case both x=k and x=\left( \frac {5k+a} {6k+1} - 1 \right) are two new solutions (or one, if these two "dual" solutions happen to be the same).
 
OK, then just reverse my argument:
If n = (a + 5x) / (6x + 1), then you can solve x from this equation. That should give you something like x = (n - a) / (5 - 6n).
This will give integer values for x when (n - a) is a multiple of (5 - 6n), from which you will get the allowed values of a that will give you f(x) = n for your favorite integer n.
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
48
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 37 ·
2
Replies
37
Views
6K