How to find the first digit and the last three digits of ${{{{2}^{3}}^{4}}^{\cdots }}^{1000}$, where the expression contains all integer numbers (from $2$ to $1000$, in order)?
2026-03-25 14:08:19.1774447699
The first digit and the last three digits of tower of exponents
231 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$.
- About polynomial value being perfect power.
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Reciprocal-totient function, in term of the totient function?
- What is the smallest integer $N>2$, such that $x^5+y^5 = N$ has a rational solution?
- Integer from base 10 to base 2
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
Related Questions in ELEMENTARY-NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- How do I show that if $\boldsymbol{a_1 a_2 a_3\cdots a_n \mid k}$ then each variable divides $\boldsymbol k $?
- Using only the digits 2,3,9, how many six-digit numbers can be formed which are divisible by 6?
- Algebra Proof including relative primes.
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
- algebraic integers of $x^4 -10x^2 +1$
- What exactly is the definition of Carmichael numbers?
- Number of divisors 888,888.
Related Questions in TOTIENT-FUNCTION
- Reciprocal-totient function, in term of the totient function?
- A congruence with the Euler's totient function and sum of divisors function
- Identify sequences from OEIS or the literature, or find examples of odd integers $n\geq 1$ satisfying these equations related to odd perfect numbers
- For which natural numbers are $\phi(n)=2$?
- A congruence with the Euler's totient function and number of divisors function
- Does converge $\sum_{n=2}^\infty\frac{1}{\varphi(p_n-2)-1+p_n}$, where $\varphi(n)$ is the Euler's totient function and $p_n$ the $n$th prime number?
- On the behaviour of $\frac{1}{N}\sum_{k=1}^N\frac{\pi(\varphi(k)+N)}{\varphi(\pi(k)+N)}$ as $N\to\infty$
- On the solutions of an equation involving the Euler's totient function that is solved by the primes of Rassias' conjecture
- Are there any known methods for finding Upper/Lower bounds on the number of Totients of x less than another number y?
- How is Carmichael's function subgroup of Euler's Totient function?
Related Questions in CHINESE-REMAINDER-THEOREM
- Simple exersice using CRT
- Direct product and absolut norm
- Find the smallest odd n,n>3 such that 3|n,5|n+2 and 7|n+4
- How to combine congruences?
- Apparently discordant result using the Chinese Remainder Theorem (CRT)
- Chinese Remainder Theorem with 0 mod n
- Uniqueness of the CRT solution in $\mathbb Z_m$
- Length of Arithmetic Progressions Under Congruence Conditions
- Chinese Remainder Theorem/Simultaneous congruences
- Solve congruence with large exponents
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Let us compute the last three digits. Basically, we want to calculate:
$$2^{something \ big} \mod 1000$$
In general, values of $a^n$ modulo $m$ start to repeat after a certain value of $n$. For example, in case of $a=2$ and $m=1000$, values $2^1$ and $2^2$ won't appear ever again, but:
$$2^3=2^{3+100}=2^{3+2\times100}=...=008\mod1000$$
Base exponent $b$ and period $p$ can be computed for every possible value of $a,m$. I'll need a function for it:
For example:
returns $b,p$ for $a=2$, $m=1000$:
For values of $n\ge b$ we can write:
$$a^n \equiv a^{[(n-b)\text{mod}\ p]+b}\mod m$$
$$a^n \equiv a^{[(n \ \text{mod}\ p)-(b\text{mod}\ p)]+b}\mod m\tag{1}$$
Note that if the value in the square brackets is negative, we have to add $p$ to make it positive. Now suppose that:
$$a=2^{3^{4^{\dots^{1000}}}}$$
This tower is a nightmare to write, so I'll represent it as list:
$$a=\{2, 3, 4, \dots,1000\}\tag{2}$$
Replace that into (1) and you get:
$$\{2, 3, 4, \dots,1000\} \equiv 2^{[(\{3, 4, \dots,1000\} \ \text{mod}\ p)-(b\text{mod}\ p)]+b}\mod m$$
$$\{2, 3, 4, \dots,1000\} \equiv 2^{[(\{3, 4, \dots,1000\} \ \text{mod}\ 100)-3]+3}\mod m$$
Now you can repeat the same process to calculate:
$$\{3, 4, \dots,1000\} \ \text{mod} \ 100$$
With this in mind we can create a recurrent function that calculates any tower modulo any number. We'll pass the tower to Mathematica as the list (2).
First, any tower is equal to zero modulo 1:
If the tower has single number (no exponent at all), just calculate the module:
And in the general case, we'll have to apply resursion:
We can test the recursion on a simple tower:
$$2^{3^5} = 2^{243} = 14134776..........0958208 \equiv 208 \mod 1000$$
The following call will really return 208, as expected:
You can calculate the last 3 digits of the complete tower from the problem with the following call:
...and the result is 352.
The first digit of the tower is equal to the first digit of Graham's number.
(Just kidding)