OFFSET
1,1
EXAMPLE
5 is a term because 5 = 1+1+3*1*1.
8 is a term because 8 = -2-2+3*2*2.
16 is a term because 16 = 2+2+3*2*2.
PROG
(Magma) [m:m in [1..101]|exists(a){i:i in [1..m-1]|IsIntegral((m-i)/(1+3*i))} or exists(b){j:j in [2..m-1]|IsIntegral((m+j)/(-1+3*j)) and (m+j)/(-1+3*j) ge 2}]; // Marius A. Burtea, Jun 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Davide Rotondo, May 16 2020
STATUS
approved