OFFSET
1,1
COMMENTS
The first and smallest term 2 is conjectured to be a singular occurrence in the integer sequence, with 10 conjectured to be the minimum descent value a(n)>a(n+1), as in Pillai's Conjecture.
LINKS
Gergely Földvári, Coefficial Divisibility (with terms published up to the first 1000 perfect powers).
Eric Weisstein's World of Mathematics, Pillai's Conjecture
EXAMPLE
The first two consecutive odd perfect powers (no perfect power between them) are 25 and 27, thus their difference (27-25) gives the first term, 2.
PROG
(Python)
from math import isqrt
def odd_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] & 1 and p[i+1] & 1]
print(odd_pp_diffs(2 * 10**6))
CROSSREFS
KEYWORD
nonn
AUTHOR
Gergely Földvári, Sep 11 2025
STATUS
approved
