OFFSET
1,1
COMMENTS
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
10467: if j = 2 (digit 6) we have 4*1 + 0*2 + 1*3 = 7 for the left side and 7*1 = 7 for the right side.
MAPLE
P:=proc(n, h) local a, j, k: a:=convert(n, base, h):
for k from 1 to nops(a)-1 do
if add(a[j]*(k-j), j=1..k)=add(a[j]*(j-k), j=k+1..nops(a)) then
RETURN(n); break: fi: od: end: seq(P(i, 10), i=1..10^3);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Feb 06 2017
STATUS
approved