返回题库

PUMaC 2009 · 数论(A 组) · 第 5 题

PUMaC 2009 — Number Theory (Division A) — Problem 5

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

英文原题

  1. Suppose that for some positive integer n, the first two digits of 5n5^{n} and 2n2^{n} are identical. Suppose
    the first two digits are a and b in this order. Find the two-digit number ab.
解析

5n5^n 和 2n2^n 的首两位数字相同。求 abab。

设 x={nlog⁡102}x = \{n\log_{10}2\}。2n2^n 的首两位为 ⌊10x+1⌋\lfloor 10^{x+1}\rfloor,5n5^n 的为 ⌊100⋅10−x⌋\lfloor 100 \cdot 10^{-x}\rfloor。

二者相等当且仅当 10x∈(3.125,3.2)10^x \in (3.125, 3.2)(对应 k=31k=31)。区间 (log⁡103.125,log⁡103.2)≈(0.49485,0.50515)(\log_{10}3.125, \log_{10}3.2) \approx (0.49485, 0.50515) 非空,故存在 nn 使 {nlog⁡102}\{n\log_{10}2\} 落入此区间。

此时首两位均为 31\boxed{31}。


英文解析

First two digits of 5n5^n and 2n2^n are identical. Find the two-digit number abab.

Let 5n=ab⋅10k+⋯5^n = ab \cdot 10^{k} + \cdots and 2n=ab⋅10m+⋯2^n = ab \cdot 10^{m} + \cdots, i.e., both start with the same two digits abab.

This means 5n5^n and 2n2^n have the same floor when divided by the appropriate power of 10: ⌊5n/10k−1⌋=⌊2n/10m−1⌋=ab\lfloor 5^n / 10^{k-1} \rfloor = \lfloor 2^n / 10^{m-1} \rfloor = ab.

Equivalently, 5n=ab⋯5^n = ab \cdots (first two digits are a,b) and 2n=ab⋯2^n = ab \cdots.

Since 5n⋅2n=10n5^n \cdot 2^n = 10^n, if both start with the same digits, their product starts with those digits squared, roughly.

More precisely, let 5n=A⋅10a5^n = A \cdot 10^a, 2n=B⋅10b2^n = B \cdot 10^b where 10≤A,B<10010 \le A, B < 100 (two-digit numbers). Actually, AA and BB are the first two digits as a number 10-99.

5n=ab⋅10k+x5^n = ab \cdot 10^{k} + x where 0≤x<10k0 \le x < 10^k and 10≤ab≤9910 \le ab \le 99. Similarly 2n=ab⋅10m+y2^n = ab \cdot 10^{m} + y.

Then 5n⋅2n=10n=(ab⋅10k+x)(ab⋅10m+y)=(ab)210k+m+⋯5^n \cdot 2^n = 10^n = (ab \cdot 10^k + x)(ab \cdot 10^m + y) = (ab)^2 10^{k+m} + \cdots.

So (ab)2⋅10k+m≈10n(ab)^2 \cdot 10^{k+m} \approx 10^n. Taking logs:
nlog⁡105=k+log⁡10(ab)+ϵ1n \log_{10} 5 = k + \log_{10}(ab) + \epsilon_1 where 0≤ϵ1<log⁡10(1+1/ab)0 \le \epsilon_1 < \log_{10}(1+1/ab).
nlog⁡102=m+log⁡10(ab)+ϵ2n \log_{10} 2 = m + \log_{10}(ab) + \epsilon_2.

Adding: n=k+m+2log⁡10(ab)+ϵ1+ϵ2n = k+m + 2\log_{10}(ab) + \epsilon_1+\epsilon_2.

Since n,k,mn,k,m are integers and log⁡10(ab)\log_{10}(ab) is between 1 and 2, this constrains the fractional parts.

Alternatively: the condition ⌊10⋅{nlog⁡105}⌋=⌊10⋅{nlog⁡102}⌋\lfloor 10 \cdot \{n \log_{10} 5\} \rfloor = \lfloor 10 \cdot \{n \log_{10} 2\} \rfloor (the first two digits are given by the fractional part of the log). This means the fractional parts of nlog⁡105n\log_{10}5 and nlog⁡102n\log_{10}2 have the same first two digits.

Since log⁡105+log⁡102=1\log_{10}5 + \log_{10}2 = 1, we have {nlog⁡105}+{nlog⁡102}=1\{n\log_{10}5\} + \{n\log_{10}2\} = 1 or 00 (exactly 1 if neither fractional part is 0). So {nlog⁡102}=1−{nlog⁡105}\{n\log_{10}2\} = 1 - \{n\log_{10}5\}.

For them to start with the same two digits abab: the first two digits of {nlog⁡105}\{n\log_{10}5\} and 1−{nlog⁡105}1-\{n\log_{10}5\} must be the same. This means both fractional parts start with abab, so abab and the "complement" also start with abab.

If {nlog⁡105}=0.ab…\{n\log_{10}5\} = 0.ab\ldots, then {nlog⁡102}=0.ab…\{n\log_{10}2\} = 0.ab\ldots too. And 0.ab…+0.ab…=10.ab\ldots + 0.ab\ldots = 1 (or close). So 0.ab…≈0.50.ab\ldots \approx 0.5. More precisely: if both start with abab, then their sum is 0.ab…+0.ab…=10.ab\ldots + 0.ab\ldots = 1, so 2×0.ab≈12 \times 0.ab \approx 1, 0.ab≈0.50.ab \approx 0.5. So abab is likely 50, 51, 52, etc.

Let me solve numerically. We need nn such that {nα}\{n\alpha\} and {n(1−α)}\{n(1-\alpha)\} have the same initial decimal digits, where α=log⁡105≈0.69897\alpha = \log_{10}5 \approx 0.69897.

Actually, let me try a known result. The condition that 2n2^n and 5n5^n start with the same digits is known to occur for n=5n=5: 25=322^5=32, 55=31255^5=3125. First two digits: 32 vs 31. Close but not same.

n=7n=7: 27=1282^7=128, 57=781255^7=78125. 12 vs 78.

n=8n=8: 256, 390625. 25 vs 39.

n=10n=10: 1024, 9765625. 10 vs 97.

n=15n=15: 32768, 30517578125. 32 vs 30. Very close!

n=16n=16: 65536, 152587890625. 65 vs 15.

n=53n=53: 253≈9.007×10152^{53} \approx 9.007 \times 10^{15}, 553≈1.110×10375^{53} \approx 1.110 \times 10^{37}. 90 vs 11.

I need to find where they share first two digits. This is a problem about the fractional part of nlog⁡102n\log_{10}2 and nlog⁡105n\log_{10}5. Let {nlog⁡102}=0.ab…\{n\log_{10}2\} = 0.ab\ldots and {nlog⁡105}=0.ab…\{n\log_{10}5\} = 0.ab\ldots.

Since log⁡102+log⁡105=1\log_{10}2 + \log_{10}5 = 1, {nlog⁡102}+{nlog⁡105}=1\{n\log_{10}2\} + \{n\log_{10}5\} = 1 (assuming neither is integer). So {nlog⁡105}=1−{nlog⁡102}\{n\log_{10}5\} = 1 - \{n\log_{10}2\}.

If both fractional parts start with the same abab, then: 0.ab≤{nlog⁡102}<0.ab+0.010.ab \le \{n\log_{10}2\} < 0.ab + 0.01 AND 0.ab≤1−{nlog⁡102}<0.ab+0.010.ab \le 1 - \{n\log_{10}2\} < 0.ab + 0.01.

From the second inequality: 1−(ab+0.01)/100<{nlog⁡102}≤1−ab/1001 - (ab+0.01)/100 < \{n\log_{10}2\} \le 1 - ab/100, i.e., 0.(99−ab)+0.(99-ab) + adjustments. Actually more precisely: 0.ab≤1−x<0.ab+0.010.ab \le 1 - x < 0.ab+0.01, so 1−(0.ab+0.01)<x≤1−0.ab1 - (0.ab+0.01) < x \le 1 - 0.ab, i.e., 0.(99−ab)…<x≤0.(99−ab+1)0.(99-ab) \ldots < x \le 0.(99-ab+1).

For both conditions to hold simultaneously, the intervals for x={nlog⁡102}x = \{n\log_{10}2\} must overlap:
[0.ab,0.ab+0.01)∩(0.(99−ab),0.(99−ab+1)]≠∅[0.ab, 0.ab+0.01) \cap (0.(99-ab), 0.(99-ab+1)] \neq \varnothing.

This requires 0.ab≈0.50.ab \approx 0.5, specifically 0.ab<0.(99−ab+1)0.ab < 0.(99-ab+1) and 0.(99−ab)<0.ab+0.010.(99-ab) < 0.ab+0.01.

ab<99−ab+1⇒2ab<100⇒ab<50ab < 99-ab+1 \Rightarrow 2ab < 100 \Rightarrow ab < 50.
99−ab<ab+1⇒98<2ab⇒ab>4999-ab < ab+1 \Rightarrow 98 < 2ab \Rightarrow ab > 49.

So ab=50ab = 50 is the boundary. For ab=49ab=49: check intervals: [0.49, 0.50) ∩ (0.50, 0.51]. These DON'T overlap (they meet at 0.50 but both are half-open). Actually, if {nlog⁡102}=0.5\{n\log_{10}2\}=0.5 exactly, then {nlog⁡105}=0.5\{n\log_{10}5\}=0.5 too. Then first digit is 5, second digit is 0 (since 0.500...). So ab=50ab=50. But does this happen? {nlog⁡102}=0.5\{n\log_{10}2\} = 0.5 means nlog⁡102=k+0.5n\log_{10}2 = k + 0.5, log⁡10(2n)=k+0.5\log_{10}(2^n) = k+0.5, 2n=10k+0.5=10k⋅102^n = 10^{k+0.5} = 10^k \cdot \sqrt{10}. This requires 22n=102k+12^{2n} = 10^{2k+1}, 4n=10⋅100k4^n = 10 \cdot 100^k, which has no integer solution (4 and 10 have different prime factors).

So {nlog⁡102}\{n\log_{10}2\} is never exactly 0.5. ab=50ab=50 can only occur if the fractional part is strictly between 0.49... and 0.50..., and also strictly between 0.50... and 0.51... — impossible!

ab=49ab=49: [0.49, 0.50) for xx, and for 1−x1-x: 1−x∈[0.49,0.50)⇒x∈(0.50,0.51]1-x \in [0.49, 0.50) \Rightarrow x \in (0.50, 0.51]. Intersection: (0.50, 0.50) = ∅. So ab=49ab=49 impossible.

ab=51ab=51: [0.51, 0.52) and 1−x∈[0.51,0.52)⇒x∈(0.48,0.49]1-x \in [0.51, 0.52) \Rightarrow x \in (0.48, 0.49]. Intersection empty too.

So abab cannot be strictly less or greater than 50? Wait, the condition is the first TWO digits are the same. 0.ab≤x<0.ab+0.010.ab \le x < 0.ab+0.01 and 0.ab≤1−x<0.ab+0.010.ab \le 1-x < 0.ab+0.01.

From the second: 1−(ab+0.01)<x≤1−ab1 - (ab+0.01) < x \le 1 - ab, meaning (100−ab−1)/100<x≤(100−ab)/100(100-ab-1)/100 < x \le (100-ab)/100.

If ab=50ab=50: 0.50≤x<0.510.50 \le x < 0.51 and 0.49<x≤0.500.49 < x \le 0.50. Intersection = {if x=0.5 exactly}. As shown, this never happens.

If ab<50ab < 50: first interval ends at <0.50<0.50. Second interval starts at >0.50>0.50. No overlap.

If ab>50ab > 50: first interval starts at >0.50>0.50. Second interval ends at <0.50<0.50. No overlap.

So... is it impossible for 2n2^n and 5n5^n to start with the same two digits? That can't be right either.

Let me reconsider. The problem statement says "first two digits of 5n5^n and 2n2^n are identical." Maybe they mean the first two SIGNIFICANT digits, not including leading zeros after the decimal.

Let 2n2^n have d2d_2 digits: 2n=A⋅10d2−12^n = A \cdot 10^{d_2-1} where 1≤A<101 \le A < 10. First two digits are ⌊10A⌋\lfloor 10A \rfloor if A≥1A \ge 1, which is ⌊2n/10d2−2⌋\lfloor 2^n / 10^{d_2-2} \rfloor. Similarly for 5n5^n.

Equivalently: if 2n2^n starts with digits abab (i.e., its decimal representation begins "ab..."), then ab⋅10d2−2≤2n<(ab+1)⋅10d2−2ab \cdot 10^{d_2-2} \le 2^n < (ab+1) \cdot 10^{d_2-2}.

Then log⁡10(ab)+d2−2≤nlog⁡102<log⁡10(ab+1)+d2−2\log_{10}(ab) + d_2 - 2 \le n\log_{10}2 < \log_{10}(ab+1) + d_2 - 2.

The fractional part {nlog⁡102}\{n\log_{10}2\} is in [log⁡10(ab),log⁡10(ab+1))[\log_{10}(ab), \log_{10}(ab+1)) (since d2−2d_2-2 is an integer, it doesn't affect the fractional part).

Similarly, {nlog⁡105}∈[log⁡10(ab),log⁡10(ab+1))\{n\log_{10}5\} \in [\log_{10}(ab), \log_{10}(ab+1)).

And {nlog⁡102}+{nlog⁡105}=1\{n\log_{10}2\} + \{n\log_{10}5\} = 1 (unless one is 0).

So we need log⁡10(ab)\log_{10}(ab) and log⁡10(ab+1)\log_{10}(ab+1) to be on opposite "sides" of 0.5, with the fractional parts both falling in [log⁡10(ab),log⁡10(ab+1))[\log_{10}(ab), \log_{10}(ab+1)).

Since {nlog⁡105}=1−{nlog⁡102}\{n\log_{10}5\} = 1 - \{n\log_{10}2\}, if {nlog⁡102}∈[L,U)\{n\log_{10}2\} \in [L, U) (where L=log⁡10(ab),U=log⁡10(ab+1)L=\log_{10}(ab), U=\log_{10}(ab+1)), then {nlog⁡105}∈(1−U,1−L]\{n\log_{10}5\} \in (1-U, 1-L]. For both to be in [L,U)[L, U), we need [L,U)∩(1−U,1−L]≠∅[L, U) \cap (1-U, 1-L] \neq \varnothing.

For overlap: L<1−LL < 1-L (so L<0.5L < 0.5) AND U>1−UU > 1-U (so U>0.5U > 0.5). Then the overlap is (1−U,U)(1-U, U).

So we need L<0.5<UL < 0.5 < U, i.e., log⁡10(ab)<0.5<log⁡10(ab+1)\log_{10}(ab) < 0.5 < \log_{10}(ab+1).

log⁡10(ab)<0.5⇒ab<10≈3.16\log_{10}(ab) < 0.5 \Rightarrow ab < \sqrt{10} \approx 3.16.
log⁡10(ab+1)>0.5⇒ab+1>10≈3.16\log_{10}(ab+1) > 0.5 \Rightarrow ab+1 > \sqrt{10} \approx 3.16.

So ab=3ab=3: log⁡103≈0.477<0.5\log_{10}3 \approx 0.477 < 0.5, log⁡104≈0.602>0.5\log_{10}4 \approx 0.602 > 0.5. ✓

The overlap interval is (1−U,U)=(1−log⁡104,log⁡104)=(log⁡10(10/4),log⁡104)=(log⁡102.5,log⁡104)≈(0.398,0.602)(1-U, U) = (1-\log_{10}4, \log_{10}4) = (\log_{10}(10/4), \log_{10}4) = (\log_{10}2.5, \log_{10}4) \approx (0.398, 0.602).

So we need {nlog⁡102}∈(log⁡102.5,log⁡104)≈(0.398,0.602)\{n\log_{10}2\} \in (\log_{10}2.5, \log_{10}4) \approx (0.398, 0.602).

For ab=3ab=3, first two digits are 31 (if {nlog⁡102}∈[log⁡103.1,log⁡103.2)\{n\log_{10}2\} \in [\log_{10}3.1, \log_{10}3.2)) or 32 (if ∈[log⁡103.2,log⁡103.3)\in [\log_{10}3.2, \log_{10}3.3)) or 33, etc. up to 39. But we also need the overlap to contain the specific sub-interval for the exact two digits.

Wait, I showed abab must be 3. But the problem says the first TWO digits are aa and bb in order. If ab=31ab=31, then log⁡103.1≈0.491<0.5\log_{10}3.1 \approx 0.491 < 0.5, log⁡103.2≈0.505>0.5\log_{10}3.2 \approx 0.505 > 0.5. The overlap with [log⁡103.1,log⁡103.2)[\log_{10}3.1, \log_{10}3.2) and (1−log⁡103.2,1−log⁡103.1]=(log⁡10(10/3.2),log⁡10(10/3.1)]=(log⁡103.125,log⁡103.226](1-\log_{10}3.2, 1-\log_{10}3.1] = (\log_{10}(10/3.2), \log_{10}(10/3.1)] = (\log_{10}3.125, \log_{10}3.226].

Overlap: [0.491,0.505)∩(0.495,0.509]=(0.495,0.505)[0.491, 0.505) \cap (0.495, 0.509] = (0.495, 0.505).

So {nlog⁡102}\{n\log_{10}2\} must be in (0.495,0.505)(0.495, 0.505). Does such nn exist?

{nlog⁡102}\{n\log_{10}2\} is dense in [0,1][0,1] (since log⁡102\log_{10}2 is irrational). So yes, there exist nn where the fractional part is in this interval. The smallest such nn gives the answer.

Finding the specific nn and abab: we need {nlog⁡102}∈(log⁡103.1,log⁡103.2)≈(0.49136,0.50515)\{n\log_{10}2\} \in (\log_{10}3.1, \log_{10}3.2) \approx (0.49136, 0.50515).

Let me search mentally: log⁡102≈0.30103\log_{10}2 \approx 0.30103. Multiples:
n=3n=3: 0.90309 → frac 0.90309
n=5n=5: 0.50515 → frac 0.50515 (this is right at the boundary log⁡103.2\log_{10}3.2)
n=7n=7: 0.30103⋅7=2.107210.30103·7=2.10721, frac=0.10721
n=8n=8: 0.40824 → in (0.398, 0.602)!
n=8n=8: first two digits of 28=2562^8=256 → 25. First two of 58=3906255^8=390625 → 39. Not same.

Wait, I need {nlog⁡102}∈(log⁡103.1,log⁡103.2)≈(0.491,0.505)\{n\log_{10}2\} \in (\log_{10}3.1, \log_{10}3.2) \approx (0.491, 0.505), not just (0.398,0.602)(0.398, 0.602).

n=5n=5: frac=0.50515. 25=322^5=32, 55=31255^5=3125. First two: 32, 31. It's ab=31ab=31 or 3232?

Hmm, {5⋅0.30103}={1.50515}=0.50515\{5·0.30103\} = \{1.50515\} = 0.50515. This is log⁡103.2\log_{10}3.2 (since 100.50515≈3.210^{0.50515} \approx 3.2). But our interval for ab=31ab=31 requires frac < 0.50515. So n=5n=5 gives ab=32ab=32? Let me check: 25=322^5=32 → first two digits 32. 55=31255^5=3125 → first two digits 31. So they're DIFFERENT (32 vs 31).

For n=5n=5, {5log⁡102}=0.50515\{5\log_{10}2\} = 0.50515, which gives first digit 3, second digit 2 (since 100.50515=3.2010^{0.50515}=3.20). {5log⁡105}=1−0.50515=0.49485\{5\log_{10}5\} = 1 - 0.50515 = 0.49485, 100.49485≈3.12510^{0.49485} \approx 3.125 → first two digits 31. So they don't match.

For n=8n=8: {8⋅0.30103}={2.40824}=0.40824\{8·0.30103\} = \{2.40824\} = 0.40824. 100.40824≈2.5610^{0.40824} \approx 2.56 → 25. {8log⁡105}=1−0.40824=0.59176\{8\log_{10}5\} = 1-0.40824 = 0.59176, 100.59176≈3.9110^{0.59176} \approx 3.91 → 39. Different.

For nn where both are 31: need {nlog⁡102}≈0.4914\{n\log_{10}2\} \approx 0.4914 (corresponding to 3.1). The second digit needs to be the same. Let x={nlog⁡102}x = \{n\log_{10}2\}. Then 10x10^x starts with 3.1..., and 101−x10^{1-x} also starts with 3.1...

10x≈3.110^x \approx 3.1 means x≈0.4914x \approx 0.4914. 101−x≈100.5086≈3.2210^{1-x} \approx 10^{0.5086} \approx 3.22 — starts with 32, not 31!

So 10x10^x and 101−x10^{1-x} can't BOTH start with the same two digits if x≈0.49x \approx 0.49, because their geometric mean is 10x⋅101−x=10≈3.162\sqrt{10^x \cdot 10^{1-x}} = \sqrt{10} \approx 3.162. If both start with 31 (3.1...), their product would be ≈(3.15)2=9.92\approx (3.15)^2 = 9.92, but the actual product is 10x⋅101−x=1010^x \cdot 10^{1-x} = 10. So the geometric mean is 10≈3.162\sqrt{10} \approx 3.162.

If both numbers start with 32 (3.2...): product ≈ (3.25)2≈10.56(3.25)^2 \approx 10.56, too high. If both start with 31 (3.15^2 ≈ 9.92), too low. The product must be exactly 10 (since the original numbers multiply to 10n10^n, and dividing by appropriate powers of 10 removes the integer parts, leaving... hmm, this isn't quite right because the powers of 10 in the product are 10d2+d5−210^{d_2+d_5-2} not 10frac stuff10^{\text{frac stuff}}. Let me be more precise.

2n=A⋅10d2−12^n = A \cdot 10^{d_2-1} where 10≤A<10010 \le A < 100 is the first two digits as a two-digit number. Actually: AA is the significand, 1≤A<101 \le A < 10. First two digits = ⌊100A⌋/10\lfloor 100A \rfloor / 10? No: first two digits of 2n2^n as a number: abab where aa is the first digit, bb is the second. This means 2n=ab⋅10k+⋯2^n = ab \cdot 10^k + \cdots where 10≤ab≤9910 \le ab \le 99.

So 2n/10k=ab.…2^n / 10^{k} = ab.\ldots where kk is chosen so that 10≤ab.…<10010 \le ab.\ldots < 100. So k=d2−2k = d_2 - 2 where d2d_2 is the number of digits of 2n2^n.

2n/10d2−2=ab.…2^n / 10^{d_2-2} = ab.\ldots, with 10≤ab.…<10010 \le ab.\ldots < 100.
log⁡10(2n/10d2−2)=nlog⁡102−(d2−2)∈[1,2)\log_{10}(2^n / 10^{d_2-2}) = n\log_{10}2 - (d_2-2) \in [1, 2).

The fractional part: {nlog⁡102}+integer∈[1,2)\{n\log_{10}2\} + \text{integer} \in [1,2). Actually, d2−2=⌊nlog⁡102⌋−1d_2-2 = \lfloor n\log_{10}2 \rfloor - 1 (since d2=⌊nlog⁡102⌋+1d_2 = \lfloor n\log_{10}2 \rfloor + 1). So d2−2=⌊nlog⁡102⌋−1d_2-2 = \lfloor n\log_{10}2 \rfloor - 1.

Then nlog⁡102−(d2−2)=nlog⁡102−(⌊nlog⁡102⌋−1)={nlog⁡102}+1n\log_{10}2 - (d_2-2) = n\log_{10}2 - (\lfloor n\log_{10}2 \rfloor - 1) = \{n\log_{10}2\} + 1.

So ab.…=101+{nlog⁡102}ab.\ldots = 10^{1 + \{n\log_{10}2\}}. The first two digits are ⌊101+{nlog⁡102}⌋\lfloor 10^{1 + \{n\log_{10}2\}} \rfloor.

Actually: 101+{nlog⁡102}=10⋅10{nlog⁡102}10^{1+\{n\log_{10}2\}} = 10 \cdot 10^{\{n\log_{10}2\}}. Since 1≤10{nlog⁡102}<101 \le 10^{\{n\log_{10}2\}} < 10, this gives a number in [10,100)[10, 100), and its integer part is the 2-digit prefix.

So first two digits of 2n2^n = ⌊10⋅10{nlog⁡102}⌋\lfloor 10 \cdot 10^{\{n\log_{10}2\}} \rfloor.
First two digits of 5n5^n = ⌊10⋅10{nlog⁡105}⌋=⌊10⋅101−{nlog⁡102}⌋\lfloor 10 \cdot 10^{\{n\log_{10}5\}} \rfloor = \lfloor 10 \cdot 10^{1 - \{n\log_{10}2\}} \rfloor (assuming neither frac is 0).

For these to be equal: ⌊10⋅10x⌋=⌊10⋅101−x⌋\lfloor 10 \cdot 10^x \rfloor = \lfloor 10 \cdot 10^{1-x} \rfloor where x={nlog⁡102}x = \{n\log_{10}2\}.

Let f(x)=⌊10⋅10x⌋f(x) = \lfloor 10 \cdot 10^x \rfloor. The condition is f(x)=f(1−x)f(x) = f(1-x) for x∈(0,1)x \in (0,1).

f(x)f(x) is a step function. 10⋅10x=10x+110 \cdot 10^x = 10^{x+1}. For x∈[0,1)x \in [0,1), 10x+1∈[10,100)10^{x+1} \in [10, 100).

⌊10x+1⌋\lfloor 10^{x+1} \rfloor takes integer values 10 through 99. The threshold between value kk and k+1k+1 is at x=log⁡10((k+1)/10)x = \log_{10}((k+1)/10).

For f(x)=f(1−x)f(x) = f(1-x): the kk-th step for xx corresponds to the (?)(?)-th step for 1−x1-x.

f(1−x)=⌊10⋅101−x⌋=⌊100⋅10−x⌋f(1-x) = \lfloor 10 \cdot 10^{1-x} \rfloor = \lfloor 100 \cdot 10^{-x} \rfloor.

So the condition is ⌊10x+1⌋=⌊100⋅10−x⌋\lfloor 10^{x+1} \rfloor = \lfloor 100 \cdot 10^{-x} \rfloor.

Let k=⌊10x+1⌋k = \lfloor 10^{x+1} \rfloor. Then k≤10x+1<k+1k \le 10^{x+1} < k+1, and we need k≤100⋅10−x<k+1k \le 100 \cdot 10^{-x} < k+1.

From the first: 10x∈[k/10,(k+1)/10)10^x \in [k/10, (k+1)/10). From the second: 10x∈(100/(k+1),100/k]10^x \in (100/(k+1), 100/k].

Overlap: max⁡(k/10,100/(k+1))<min⁡((k+1)/10,100/k)\max(k/10, 100/(k+1)) < \min((k+1)/10, 100/k).

For k=31k=31: 10x∈[3.1,3.2)10^x \in [3.1, 3.2) and 10x∈(100/32,100/31]=(3.125,3.226]10^x \in (100/32, 100/31] = (3.125, 3.226]. Overlap: [3.1,3.2)∩(3.125,3.226]=(3.125,3.2)[3.1, 3.2) \cap (3.125, 3.226] = (3.125, 3.2). This is nonempty! So 10x∈(3.125,3.2)10^x \in (3.125, 3.2) works.

10x∈(3.125,3.2)10^x \in (3.125, 3.2) means x∈(log⁡103.125,log⁡103.2)x \in (\log_{10}3.125, \log_{10}3.2).

log⁡103.125=log⁡10(25/8)=log⁡1025−log⁡108=2log⁡105−3log⁡102\log_{10}3.125 = \log_{10}(25/8) = \log_{10}25 - \log_{10}8 = 2\log_{10}5 - 3\log_{10}2. Or approximately: log⁡103.125≈0.49485\log_{10}3.125 \approx 0.49485. log⁡103.2≈0.50515\log_{10}3.2 \approx 0.50515.

So x∈(0.49485,0.50515)x \in (0.49485, 0.50515). We need {nlog⁡102}∈(0.49485,0.50515)\{n\log_{10}2\} \in (0.49485, 0.50515).

Let me search: nlog⁡102 mod 1n\log_{10}2 \bmod 1. log⁡102≈0.30102999566\log_{10}2 \approx 0.30102999566.
Multiples mod 1:
1: 0.30103
2: 0.60206
3: 0.90309
4: 0.20412
5: 0.50515 → this is AT the upper boundary. {5log⁡102}=0.50515\{5\log_{10}2\} = 0.50515, 10x=100.50515=3.200010^x = 10^{0.50515} = 3.2000. So f(x)=⌊32.00⌋=32f(x) = \lfloor 32.00 \rfloor = 32. f(1−x)=⌊100/3.2⌋=⌊31.25⌋=31f(1-x) = \lfloor 100/3.2 \rfloor = \lfloor 31.25 \rfloor = 31. Not equal.

6: 0.80618
7: 0.10721
8: 0.40824
9: 0.70927
10: 0.01030
...
Let me compute more values of {nlog⁡102}\{n\log_{10}2\} looking for values in (0.49485, 0.50515):

log⁡102=0.3010299956639812\log_{10}2 = 0.3010299956639812.
Multiples mod 1 for n=1 to ...:

I'll check if any n gives frac in that narrow range. This requires nlog⁡102n\log_{10}2 to be very close to an integer + 0.5. i.e., nlog⁡102−m≈0.5n\log_{10}2 - m \approx 0.5, so log⁡102≈(m+0.5)/n\log_{10}2 \approx (m+0.5)/n. This is a rational approximation problem.

log⁡102≈0.30103\log_{10}2 \approx 0.30103. We want n⋅0.30103≈m+0.5n \cdot 0.30103 \approx m + 0.5, i.e., 0.30103n−0.5≈m0.30103n - 0.5 \approx m (integer).

0.30103n≡0.5(mod1)0.30103n \equiv 0.5 \pmod{1}. This is a fractional part problem. The fractional parts of nlog⁡102n\log_{10}2 are dense, so eventually one will land in (0.49485, 0.50515).

Let me compute: nlog⁡102n\log_{10}2 mod 1 for increasing n:
n=1: 0.30103
n=2: 0.60206
n=3: 0.90309
n=4: 0.20412
n=5: 0.50515 ← first near 0.5 (error 0.00515 > 0.00515 needs to be < 0.00515 for k=31)

For k=31: interval width = 0.50515 - 0.49485 = 0.01030. n=5 falls at the upper boundary. Let's continue searching.

Actually, I can compute: log⁡102\log_{10}2 continued fraction. But for now let me estimate. We need {nlog⁡102}∈(0.49485,0.50515)\{n\log_{10}2\} \in (0.49485, 0.50515).

n=5: 0.50515 (too high by ~0.00000... it's at the boundary).
n=... The distance from 0.5 is {nlog⁡102}−0.5\{n\log_{10}2\} - 0.5. n=5: +0.00515.

Let me compute n=5+... using the fact that the fractional parts follow a beat pattern. The next time n·0.30103 gets close to X.5, the increment is 0.30103 mod 1.

The sequence of fractional parts repeats... no, log⁡102\log_{10}2 is irrational. Let me compute more:
n=5: 1.50515 → frac 0.50515
n=...

Actually, let me write the continued fraction for log⁡102\log_{10}2:
log⁡102=1/log⁡210=1/3.321928...=0.30103...\log_{10}2 = 1/\log_2 10 = 1/3.321928... = 0.30103...
Convergents of log⁡102\log_{10}2: 0/1, 1/3, 3/10, 7/23 (very rough).

Hmm, this is taking too long. For the answer, ab=31ab=31 is the two-digit number, and the smallest nn where both 2n2^n and 5n5^n start with 31 is n=8n = 8? No, 28=2562^8=256 starts with 25.

Actually, the well-known answer to this problem is ab=31ab=31. For n=5n=5, 25=322^5=32 and 55=31255^5=3125, they start 32 vs 31. At the boundary. For some larger nn, both start with 31.

I'll give 31\boxed{31} as the answer based on the mathematical structure derived above (only abab values where log⁡10(ab)<0.5<log⁡10(ab+1)\log_{10}(ab) < 0.5 < \log_{10}(ab+1) can work, giving ab=31ab=31).