OFFSET
1,1
COMMENTS
For some numbers 2n, there is no prime number of the form of 1 + 2n + (2n)^2 + ... + (2n)^m. The smallest ones are 32, 64, 92, ...
However, it seems when one term is taken off from the sum, there always exists prime terms for a finite pair of (m, k) in the form of 1 + 2n + (2n)^2 +...+ (2n)^(k - 2) + ... (2n)^k +...+ (2n)^m.
This sequence lists the smallest such prime numbers for each n.
It is checked up to n = 50000 without exception.
a(50000) = 10000100001000010000100001000010000100001000010000000001, for (m, k) = (12, 2) = 111111111101 base 100000.
This is also the smallest prime in base 2n (cf. A390983) in the form 1..0..1, or smallest near unit digit primes base 2n.
EXAMPLE
When n = 1, 2n = 2, (2^2 - 1)/(2 - 1) - 2^(1 - 1) = 2 is prime, where m = 2, k = 1. So a(1) = 2 = 10 base 2.
When n = 2, 2n = 4, if m = 2, (4^2 - 1)/(4 - 1) = 5, 5 - 4^(1 - 1) = 4 is not prime;
for m = 3, (4^3 - 1)/(4 - 1) = 21, 21 - 4^(2 - 1) = 17 is prime, so (m, k) = (3, 2) makes a(2) = 17 = 101 base 4.
...
When n = 4, 2n = 8, if m = 2, (8^2 - 1)/(8 - 1) = 9, 9 - 8^(1 - 1) = 8 is not prime;
for m = 3, (8^3 - 1)/(8 - 1) = 73, 73 - 8^(2 - 1) = 65 is not prime;
for m = 4, (8^4 - 1)/(8 - 1) = 585, 585 - 8^(3 - 1) = 521 is prime, so (m, k) = (4, 3) makes a(4) = 521 = 1011 base 8.
...
When n = 11, 2n = 22, in the same way to check, it is found that (m, k) = (5, 2) makes a(11) = 245389 = (22^5 - 1)/(22 - 1) - 22^(2 - 1) = 11101 base 22.
MATHEMATICA
Table[m = 1; ct = 0; While[q = 0; Do[q = q + (2*n)^i, {i, 0, m}]; Do[p = q - (2*n)^i; If[PrimeQ[p], ct++; p0 = p], {i, 0, m - 1}]; ct == 0, m++]; p0, {n, 1, 34}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lei Zhou, Apr 22 2026
STATUS
approved
