proposed
approved
proposed
approved
editing
proposed
for n in range(1, 1000000000L 1000000000):
tn = int(n*(n+1)/2 ) # = x+y = distance between squares
print (int(t))
if (n&0xfffff)==0: print ('.', end='')
approved
editing
for n in xrangerange(1, 1000000000L):
editing
approved
ttnQ[n_]:=Module[{s=Sqrt[n], x, y}, x=If[IntegerQ[s], n-(s-1)^2, n- Floor[ s]^2]; y=If[IntegerQ[s], (s+1)^2-n, Ceiling[s]^2-n]; AllTrue[ {Sqrt[ 8x+1], Sqrt[8y+1], Sqrt[8(x+y)+1]}, OddQ]]; Join[{1}, Select[Accumulate[ Range[10000]], ttnQ]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, May 30 2015 *)
approved
editing
proposed
approved
editing
proposed
No more terms through 10^34. - Jon E. Schoenfield, Feb 09 2014
approved
editing
editing
approved