4

If we write down the digits of the $33$ rd Fermat number $$F_{33}=2^{2^{33}}+1$$ in base $10$ in reverse order , the resulting number should , considering its magnitude , be composite.

But can we search for a prime factor WITHOUT actually calculating $F_{33}$ ? $F_{33}$ begins with a $9$ , so there is no obvious prime factor of the reversed number. Can I , for example , determine whether the reverse of $F_{33}$ is divisible by $7$ ?

Bill Dubuque
  • 282,220
Peter
  • 86,576
  • Why do you wish to avoid using a computer to programmatically compute the reverse digits of $~F_{33}?~$ Assuming that the reversal is composite, it is almost certainly divisible by some prime less that $~100,000.~$ Java has the BigInteger class, and (presumably) programming languages like C or Python have similar facilities, so confining all calculations to integers (i.e. avoiding floating point calculations) is straightforward. – user2661923 Aug 31 '23 at 00:22
  • @user2661923 I am not aware of a program with that I can handle such monster numbers with the memory of my computer. If you know such a program and have such a computer , you can do the calculations. Note that we need not only the number itself , we must also actively create the reverse. My memory limit does not even allow to make this with numbers of around $100$ million digits. – Peter Aug 31 '23 at 05:59
  • The probability that there is no prime factor below $10^5$ is about $18$% (We already know that $2,3,5$ cannot be a prime factor) , so the "risk" that the smallest prime factor exceeds $10^5$ is not so small. – Peter Aug 31 '23 at 06:04
  • Very interesting points, in both of your comments. Re your first comment, it was my carelessness for not examining $~F_{33}~$ closely enough. I assumed that $~F_{33} < 10^{10000},~$ but now I see that $\displaystyle ~F_{33} > 10^{\left(2^{31}\right)} > 10^{\left(10^9\right)}.~$ So, $~F_{33}~$ has more than 1 billion digits, which no standard home PC can handle. – user2661923 Aug 31 '23 at 08:51
  • @user2661923 Exactly. – Peter Aug 31 '23 at 08:52

1 Answers1

4

The Fermat number $F_{33}$ can be calculated in around 3 seconds on my machine. Reversing its decimal representation - we can trial divide by around 1 prime per second. With this, we have that:

$$ (7 \cdot 17 \cdot 37 \cdot 101 \cdot 101 \cdot 191 \cdot 257) \; | \; \text{rev}(F_{33}) = \underbrace{ 7986106331 \cdots 3310530369}_{\text{2,585,827,973 digits}} $$

Here is the code that I used to generate the factors - let me know if you have any questions.

  • My main question is how you were able not only to store this number , but also to invert it. I am not aware of any tool that can do this. Also, the computation time for this monster number is very surprising to me. You must have a powerful tool together with a machine offering much working space. Surprising also that we have so many small factors. – Peter Jun 09 '24 at 09:08
  • The number only takes up 2.5 GB when expressed as a string and so can be easily stored in RAM - my machine has 32 GB of RAM so this was very much doable. – Husnain Raza Jun 09 '24 at 21:45