OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 1001 terms from Harvey P. Dale)
FORMULA
{k: A101428(k) > 0}. - R. J. Mathar, Apr 28 2020
k is a term iff each prime factor congruent to 5 or 7 (mod 8) of 8*k+1 comes in even degree. - Max Alekseyev, Mar 30 2026
MAPLE
isA014133 := proc(n)
local c, t ;
for c from 0 do
t := c*(c+1)/2 ;
if t > n then
return false;
end if;
if issqr(n-t) then
return true;
end if;
end do:
end proc:
for n from 0 to 100 do
if isA014133(n) then
printf("%d, ", n) ;
end if;
end do: # R. J. Mathar, Oct 11 2014
# Alternative:
q:= n-> ormap(x-> issqr(8*x+1), [n-i^2$i=0..isqrt(n)]):
select(q, [$0..100])[]; # Alois P. Heinz, Jan 14 2026
MATHEMATICA
With[{nn=20}, Select[Union[Flatten[Outer[Plus, Range[0, nn]^2, Accumulate[ Range[ 0, nn]]]]], #<=(nn(nn+1))/2&]] (* Harvey P. Dale, Dec 29 2019 *)
fQ[n_] := Block[{s = t = 0, lmt = 1 + Floor[(Sqrt[ 8n +1] -1)/2]}, While[t < lmt, If[ Mod[ Sqrt[n -t (t +1)/2], 1] == 0, s = 1; t = lmt]; t++]; s == 1]; Select[Range[0, 92], fQ] (* Robert G. Wilson v, Jan 14 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset changed to 1 by Alois P. Heinz, Jan 14 2026
STATUS
approved
