OFFSET
1,4
EXAMPLE
For n = 13:
- 13 = 3^2 + 2^2,
- so a(13) = 2^2.
PROG
(PARI) a(n, e=2) = { my (r=0); while (n, r=sqrtnint(n, e); n-=r^e); r^e }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 12 2022
STATUS
approved