OFFSET
1,3
COMMENTS
The sequence of first differences is eventually 2-periodic: 1, 7, 1, 1, 7, 1, 8, 1, 8, 1, 8, etc. The minimum numbers k associated with the first terms of the sequence are (m,k): (0,0), (1,0), (8,9), (9,0), (10,3), (17,24), (18,6), (26,75), etc.
EXAMPLE
m = 27 -> k = 75 -> (27+75)*abs(27-75) = 102*48 = 4896 -> 4+8+9+6 = 27.
MAPLE
P:=proc(n) local i, j, k, w; for i from 0 by 1 to n do for j from 0 by 1 to 100*n do w:=0; k:=(j+i)*abs(i-j); while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; if w=i then print(i); break; fi; od; od; end: P(100000);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Jul 26 2007
STATUS
approved