login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A076769
Integers not expressible as the sum of a positive triangular number and a square.
0
8, 9, 13, 18, 20, 23, 27, 33, 34, 38, 41, 43, 47, 48, 58, 60, 62, 63, 68, 69, 73, 76, 83, 86, 88, 89, 90, 93, 97, 98, 99, 108, 111, 112, 113, 118, 123, 125, 132, 133, 134, 135, 138, 139, 143, 144, 146, 148, 151, 158, 160, 163, 164, 167, 168, 173, 174, 177, 181, 182
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