Last digits of a tetration

Compute the last 12 digits of 2019 2019 = 2020 2019 ^{2019}2019=2020\uparrow\uparrow2019 .

More info on tetration


The answer is 226871001179.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Nest [ ( 201 9 $#$1 m o d 1000000000000 ) & , 2019 , 2018 ] 226871001179 \text{Nest}[(2019^{\text{\$\#\$1}} \bmod 1000000000000)\&,2019,2018] \Rightarrow 226871001179

PowerMod

Nest

This computes the entire tetration from the top down, keeping the last twelve digits only at each stage.

PowerMod is a function more commonly used in cryptographic efforts.

The method of using binary powers computed by repeated squaring is another cryptographic technique.

can you explain things? it is confusing.

Srikanth Tupurani - 2 years, 2 months ago

Log in to reply

There is not much to the question anyways (matter of computation). why bothering knowing the answer?

A Former Brilliant Member - 2 years, 2 months ago

Actually there's a much simpler solution that let's you do with just pencil and paper in theory, thanks to the multiplicative orders:

201 9 2019 201 9 9 m o d 1 0 2 79 m o d 1 0 2 2019^{2019} \equiv 2019^9 \mod{10^2} \equiv 79 \mod{10^2}

So the last 2 digits are 79. We can proceed computing the next digits in the same way:

201 9 201 9 2019 201 9 79 m o d 1 0 3 179 m o d 1 0 3 2019^{2019^{2019}} \equiv 2019^{79} \mod{10^3} \equiv 179 \mod{10^3}

So the last 3 digits are 179. And so on, one can easily compute all the 12 digits without even using a calculator, with enough patience.

By the way to compute the last digits of a big power you can just compute 201 9 2 , 201 9 4 , 201 9 8 , 201 9 16 , 201 9 32 , . . . 2019^2, 2019^4, 2019^8, 2019^{16}, 2019^{32}, ... , since every number can be expressed in binary, so for example if I need to compute

201 9 79 2019^{79}

I just need to multiply

201 9 1 × 201 9 2 × 201 9 4 × 201 9 8 × 201 9 64 m o d 1 0 3 2019^{1} \times 2019^{2} \times 2019^{4} \times 2019^{8} \times 2019^{64} \mod{10^3} .

The question is interesting exactly because of the fact that it is actually doable without a calculator, in probably less than half an hour.

Aldo Roberto Pessolano - 2 years, 2 months ago

By the way I haven't put only the last 5 digits or so because otherwise one could cheat with wolframalpha very easily, by inserting

2019^2019^2019^2019^2019^2019^2019^2019^2019^2019

It would immediately tell the last 10 digits... With 12 digits anyone can still easily get the result, by putting 201 9 9 2019^9 , then 201 9 79 2019^{79} , then 201 9 179 2019^{179} and so on, but at least this requires a little more work with the brain, using the multiplicative orders. Actually, one could still get immediately the answer with this command on wolframalpha:

2019^2019^2019^2019^2019^2019^2019^2019^2019^2019^2019^2019 mod 10^12

But this still requires the knowledge of fixed digits in tetrations.

Aldo Roberto Pessolano - 2 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...