OFFSET
1,1
COMMENTS
LINKS
Rémy Sigrist, C program
EXAMPLE
For n = 1:
- 2 is not a perfect power,
- so a(1) = 2.
For n = 2:
- 2 + 2 is a perfect power,
- neither 2 + 3 nor 3 are perfect powers,
- so a(2) = 3.
For n = 3:
- none of 2 + 3 + 2, 3 + 2, 2 is a perfect power,
- so a(3) = 2.
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Oct 23 2022
STATUS
approved