OFFSET
0,4
PROG
(Python)
import math
for n in range(333):
for k in range(1000000):
t = n - k*(k+1)/2
if t<0:
print('-1', end=', ')
break
r = int(math.sqrt(t))
if r*r==t:
print(str(k), end=', ')
break
CROSSREFS
KEYWORD
sign
AUTHOR
Alex Ratushnyak, Nov 08 2013
STATUS
approved