OFFSET
1,1
EXAMPLE
The perfect powers are 1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 81, 100, 121, etc. The 7th is 27. This is 2 larger than the 6th (25) and 5 smaller than the 8th (32). So a(7)=5.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neil Fernandez, Oct 09 2002
STATUS
approved