How to find functions & inputs whose output is a specific number

Click For Summary
SUMMARY

The discussion focuses on the challenge of finding a function and its corresponding input(s) that yield a specific large number, n, particularly in the context of data compression. The approach suggested involves expressing n as sums or differences of large powers of prime numbers, leveraging the unique prime factorization of numbers. A specific example is provided, using the 17th prime number raised to a power, demonstrating the computational feasibility of generating large outputs. The core question remains how to reverse-engineer a bit string into a compact function representation.

PREREQUISITES
  • Understanding of prime factorization and its uniqueness
  • Familiarity with functions and their outputs in mathematical contexts
  • Basic knowledge of data compression techniques
  • Experience with logarithmic time complexity in computations
NEXT STEPS
  • Research methods for expressing binary strings as functions
  • Explore advanced data compression algorithms and their mathematical foundations
  • Study the properties of prime numbers and their applications in computational problems
  • Investigate the implications of function inversion in mathematical analysis
USEFUL FOR

Mathematicians, data compression specialists, software developers, and anyone interested in optimizing function representations for large numerical outputs.

DaviFN
Messages
1
Reaction score
0
I'm interested in the following problem: given a random number n (n can be gigantic), how do we find a pair function+input(s) whose output is n such that the input(s) are relatively small in size?

This problems arises in data compression; consider the bits that make up a file (or a substring of bits of the file) and treat it as a number (i.e. the bits are the binary representation of this number). If we could write a pair function+input(s) whose output happens to be the substring, this whole substring can be replaced by the function+input(s).

I've thought of expressing the number as sums (or differences) of relative big powers of prime numbers. Is this a good approach? And, if not, what would be a good one? And how to proceed?

Motivation of the question: A simples function like raising the nth prime number to a power S can result (depending on the values of p and S) on various outputs, each of which is unique (given that any number has only one prime factorization). If we pick p = 17 and S = 89435, for example, that's computationally trivial to compute (takes logarithmic time), and will result in a somewhat gigantic number. We can then generate a file whose bits are the same of the binary representation of this number (or at least some of the bits are). (This is just a rough example). The problem is going the other way: Given a bit string (hence, a number), how to express this specific bitstring with less bits (very few, actually) through a function that results in the number.

Any ideas/answers/comments are welcome!

This question is cross-posted https://math.stackexchange.com/questions/3275106/how-to-find-functions-inputs-whose-output-is-a-specific-number.
 
Mathematics news on Phys.org
What do you mean by "gigantic". How about, given a number, y, take x to be y- 10000000 and f(x)= x+ 10000000? There are, of course, infinitely many such numbers and functions.
 

Similar threads

Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 17 ·
Replies
17
Views
1K