Can You Simplify Large Numbers into Integers with Minimal Remainder?

  • Context: Undergrad 
  • Thread starter Thread starter therogerwilco
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the challenge of simplifying large numbers, specifically in the billions, into a form represented as an integer raised to an integer power plus or minus a minimal remainder. Participants explore various approaches, constraints, and examples related to this mathematical problem.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests finding a representation of a large number n as a^b + c, where a, b, and c are integers, and |c| is minimal.
  • Another participant notes that the exponent b is often 2 for many large numbers, indicating a potential pattern in the results.
  • Some participants propose that constraining the exponent to be at least 3 results in larger remainder terms, complicating the simplification.
  • There are suggestions to apply recursive methods to break down large numbers further, exploring nested exponentiation and addition.
  • A participant mentions using Pari code for testing various numbers and seeks to count densities of numbers better approximated by non-square forms.
  • Examples are provided to illustrate different representations of numbers, including complex nested forms and alternative notations like RPN.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to simplify large numbers, with no consensus on a single method or representation. The discussion remains unresolved regarding the optimal constraints and techniques.

Contextual Notes

Some participants highlight the importance of defining constraints clearly, such as the minimum value for the exponent and the size of the remainder, which affects the complexity of the problem.

therogerwilco
Messages
2
Reaction score
0
New here, quick thought :)

Well, this is probably an easy question, but I've been out of school for some time though until recently.
I figured I'ld ask it here cause physics junkies > math junkies :)

What would be the easiest route towards aquiring a int^int +/- remainder result from a fairly large number, in the billions +.
So, if given the number

345,231,234,564,234

It would give the solution (pretend the math is right)

4^34 with a remainder of -342
which would equate to, 4 to the 34th, minus 342.
the remainder can be positive or negative, but the goal is to get the nearest int^int combo, with minimal remainder...

lol

thank for any help that might be had :)
 
Mathematics news on Phys.org


Well, 345,231,234,564,234^1 would work, of course, but I don't think that's what you're looking for. I think you need to constrain the problem a bit more, since it might happen that the number is close to a square or a cube or something like that, and so the result wouldn't reduce the complexity as much as you might want. eg: 974,559,891,205 = 987198^2 + 1
 


Does it need to be the very best, or just 'good'?

I imagine you're requiring the exponent to be more than 1. Actually, let me try to specify it and have you tell me what's wrong, if anything:

Given a (large) number n, find a > 0, b > 1, and c so that

[tex]a^b+c=n[/tex]

where a, b, and c are integers, and |c| is [small].

(Replace [small] with [minimal] if desired.)Now, does it bother you that b will be 2 fairly often? For example, I tested 10,000 values around 4e25, and I found that all 10,000 had exponent 2. I found the same thing with 100,000 numbers around your number.
 
Last edited:


maze said:
Well, 345,231,234,564,234^1 would work, of course, but I don't think that's what you're looking for. I think you need to constrain the problem a bit more, since it might happen that the number is close to a square or a cube or something like that, and so the result wouldn't reduce the complexity as much as you might want. eg: 974,559,891,205 = 987198^2 + 1

I agree. The best form for the example given (with exponent > 1) is
18580399^2 + 7565033
which isn't less complicated at all.

If you constrain the exponent to be at least 3, the remainder term grows significantly larger:
70151^3 + 6742911283
 


You could keep applying CR's idea, might get something interesting. eg
n = (((a^b + c)^d + e)^f + g)
 


maze said:
You could keep applying CR's idea, might get something interesting. eg
n = (((a^b + c)^d + e)^f + g)

Just keep busting up those big numbers. :)

I could post my Pari code here, if anyone wants it, but it's not that great -- it could be much faster in a compiled language (> 5x), and could be algorithmically improved for the case of testing many sequential numbers (> 10x improvement at least, but only when testing thousands-millions of numbers).

I'm trying to get a count of the densities of numbers which are better approximated by a nonsquare than by a square. So far I have 2, 7, 100, 941, 5168, 38294, ... such numbers for 1, 2, 3, 4, 5, 6, ... digits. The densities are dropping off, though not as quickly as I'd hoped. For larger numbers of digits, even with the improvements above, I'd have to use random sampling to get a good idea, since it's taking too long as it is.
 


You could keep going and going until everything is 1's, (), *, +, ^.

eg:
95
= 3^4+13
= (2+1)^(2^2)+(3^3+4)
= ((1+1)+1)^((1+1)^(1+1))+((2+1)^(2+1)+(2^2))
= ((1+1)+1)^((1+1)^(1+1))+(((1+1)^1+1)^((1+1)+1)+((1+1)^(1+1)))
 


maze said:
You could keep going and going until everything is 1's, (), *, +, ^.

eg:
95
= 3^4+13
= (2+1)^(2^2)+(3^3+4)
= ((1+1)+1)^((1+1)^(1+1))+((2+1)^(2+1)+(2^2))
= ((1+1)+1)^((1+1)^(1+1))+(((1+1)^1+1)^((1+1)+1)+((1+1)^(1+1)))

From there you could drop the 1s since they're redundant at that point:
(++)^((+)^(+))+(((+)^+)^((++)+((+)^(+)))

Or even write it in RPN. There's a funny way to compress numbers.
 


Ahh excellent, tyvm for the help fellas :)
The problems look much more do-able now lol
 
  • #10


Glad we could help. As a general rule, take the whole number closest to the square root; squared, that should give a small absolute remainder.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K