OFFSET
1,1
PROG
(PARI) isA155571(n, /* optional 2nd arg allows us to get other sequences */c=[5, 3, 1]) = { for(i=1, #c, for(b=1, sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return); 1}
for( n=1, 1999, isA155571(n) & print1(n", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
M. F. Hasler, Jan 25 2009
STATUS
approved