OFFSET
1,2
EXAMPLE
12^2 + (phi(2+12) - phi(2))^2 = 13^2 and k = 12 is the least natural number achieving this, so a(2) = 12.
PROG
(PARI) a(n) = for(k=1, oo, if(issquare(k^2 + (eulerphi(n+k) - eulerphi(n))^2), return(k))); \\ Jinyuan Wang, Jul 30 2020
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Joseph L. Pe, Jan 18 2002
EXTENSIONS
More terms from Jinyuan Wang, Jul 30 2020
STATUS
approved