OFFSET
1,1
COMMENTS
The minimum descent value a(n)>a(n+1) is conjectured to be 8, as in Pillai's Conjecture.
LINKS
Gergely Földvári, Coefficial Divisibility (with terms up to the first 1000 perfect powers).
Eric Weisstein's World of Mathematics, Pillai's Conjecture
EXAMPLE
The first pair of consecutive even perfect powers (no perfect power in between) are 4 and 8, their difference (8-4=4) gives the first term of the integer sequence, 4.
The second pair is 32 and 36, their difference (36-32=4) gives the second term of the integer sequence which is also 4.
PROG
(Python)
from math import isqrt
def even_pp_diffs(n):
p = {1}
for a in range(2, isqrt(n)+1):
x = a * a
while x <= n:
p.add(x)
x *= a
p = sorted(p)
return [p[i+1] - p[i] for i in range(len(p)-1) if p[i] % 2 == 0 and p[i+1] % 2 == 0]
print(even_pp_diffs(2 * 10**6))
CROSSREFS
KEYWORD
nonn
AUTHOR
Gergely Földvári, Sep 11 2025
STATUS
approved
