OFFSET
1,1
PROG
(PARI) isok(n)={for(k=1, sqrtint(2*n), if(issquare(n-binomial(k+1, 2)), return(0))); 1} \\ Andrew Howroyd, Sep 18 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Nov 14 2002
EXTENSIONS
Name clarified and offset changed by Andrew Howroyd, Sep 18 2024
STATUS
approved