OFFSET
2,2
COMMENTS
With n = 5 consecutive numbers we can start from k = 4 but also from k = 16. The sequence considers only the least number: a(5) = 4.
LINKS
EXAMPLE
a(2)= 1 because 1+2=3 and 1 is the least number to have this property;
a(3)= 4 because 4+5+6=7+8 and 4 is the least number to have this property;
a(4)= 9 because 9+10+11+12=13+14+15 and 9 is the least number to have this property;
a(5)= 4 because 4+5+6+7+8=9+10+11 and 4 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, 1);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jan 16 2017
STATUS
approved