login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A103953
Smallest perfect power b^e such that b^e+n is also a perfect power, or 0 if no such perfect power exists.
4
8, 25, 1, 4, 4, 0, 1, 1, 16, 2187, 16, 4, 36, 0, 1, 9, 8, 9, 8, 16, 4, 27, 4, 1, 100, 1, 9, 4, 196, 6859, 1, 4, 16, 0, 1, 64, 27, 1331, 25, 9, 8, 0, 441, 81, 4, 243, 81, 1, 32, 0, 49, 144, 676, 27, 9, 8, 64, 0, 841, 4, 64, 0, 1, 36, 16, 0, 1089
OFFSET
1,1
COMMENTS
a(A074981(n)) = 0.
FORMULA
a(n) = A074954(n)-n, if A074954(n)>0; a(n)=0, if A074954(n)=0.
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Feb 22 2005
EXTENSIONS
Offset corrected by Mohammed Yaseen, Aug 09 2023
STATUS
approved