OFFSET
1,1
COMMENTS
n is in the sequence if for some prime p == 5 or 7 (mod 8), 8*n+1 is divisible by p but not by p^2. The first member of the sequence that does not have this property is 16078. - Robert Israel, Mar 17 2015
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..4646
MAPLE
N:= 1000: # to generate all terms <= N
{$1 .. N} minus {seq(seq(x*(x+1)/2 + y^2, y = 0 .. floor(sqrt(N - x*(x+1)/2))),
x = 0 .. floor((sqrt(8*N+1)-1)/2))};
# if using Maple 11 or earlier, uncomment the next line
# sort(convert(%, list)); # Robert Israel, Mar 17 2015
MATHEMATICA
fQ[n_] := Block[{k = 0, lmt = 1 + Floor@ Sqrt@ n}, While[k < lmt && !IntegerQ@ Sqrt[ 8(n - k^2) + 1], k++]; k == lmt]; Select[ Range@ 175, fQ@# &] (* Robert G. Wilson v, Nov 29 2015 *)
PROG
(PARI) is_A014134(n)=for(k=0, sqrtint(n*2), issquare(n-k*(k+1)/2)&return); 1 /* M. F. Hasler, Jan 05 2009 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved