OFFSET
2,1
COMMENTS
With n = 17 consecutive numbers we can start from k = 18 but also from k = 528. The sequence considers only the least number: a(17) = 18.
In general t = k + 2*(n-1) but sometimes it differs, e.g., for n = 17, 35, 39, 51, 93, 127, 382, etc.
LINKS
EXAMPLE
a(2) = 3 because 3^2 + 4^2 = 5^2 and 3 is the least number to have this property;
a(3) = 10 because 10^2 + 11^2 + 12^2 = 13^2 + 14^2 and 10 is the least number to have this property.
a(4) = 21 because 21^2 + 22^2 + 23^2 + 24^2 = 25^2 + 26^2 + 27^2 and 21 is the least number to have this property.
a(5) = 36 because 36^2 + 37^2 + 38^2 + 39^2 + 40^2 = 41^2 + 42^2 + 43^2 + 44^2 and 36 is the least number to have this property.
MAPLE
P:=proc(q, h) local a, b, c, j, k, n; for n from 2 to q do for k from 1 to q do a:=add(j^h, j=k..k+n-1); b:=0;
c:=k+n-1; while b<a do c:=c+1; b:=b+c^h; od; if a=b then print(k); break; fi; od; od; end: P(10^6, 2);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jan 16 2017
STATUS
approved