Integer values of this expression

  • Context: Undergrad 
  • Thread starter Thread starter epsi00
  • Start date Start date
  • Tags Tags
    Expression Integer
Click For Summary

Discussion Overview

The discussion revolves around finding integer values of the function f(x) = (a + 5x) / (6x + 1) where both a and x are integers. Participants explore methods to determine x for given integer values of a, addressing the complexity of the problem for larger values of a.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • One participant inquires about a simple method to find integer values of f(x).
  • Another participant suggests that for any integer x, one can derive a corresponding integer a using the formula a = (6x + 1)n - 5x, interpreting this as finding integer values.
  • A later reply clarifies that the original intent was to find values of x for a given integer a, rather than deriving a.
  • One participant notes that x = 0 and x = a - 1 are always solutions and discusses the pairing of solutions, indicating that if x_0 is a solution, then x_1 = n_0 - 1 is also a solution.
  • Another participant proposes reversing the argument to express x in terms of n, suggesting that integer values for x can be found when (n - a) is a multiple of (5 - 6n).

Areas of Agreement / Disagreement

Participants express differing interpretations of the problem, with some focusing on deriving a from x and others on finding x for a given a. The discussion remains unresolved regarding the most efficient method to find integer values of x.

Contextual Notes

Participants mention the complexity of checking values of x one by one for larger integers a, indicating a potential limitation in brute-force approaches.

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
[tex]a = (6x + 1) n - 5x[/tex]
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
[tex]a = (6x + 1) n - 5x[/tex]
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 [itex]x_0[/itex] is a solution, producing an integer [itex]n_0 = \frac {5x_0 + a} {6x_0 + 1}[/itex], then it's not hard to prove that [itex]x_1=n_0 - 1[/itex] is a solution too (which will produce the integer [itex]n_1=x_0+1[/itex]).

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=[itex]\lfloor \frac {2 + \sqrt{4+6a}} 6 \rfloor[/itex], checking if [itex]a \equiv k+1 \pmod {6k+1}[/itex], in which case both x=k and x=[itex]\left( \frac {5k+a} {6k+1} - 1 \right)[/itex] 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.
 

Similar threads

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