OFFSET
1,1
COMMENTS
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
83 in base 4 is 1103. If j = 2 (digit 0) we have 1*1 + 1*2 = 3 for the left side and 3*1 = 3 for the right one.
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, 4), i=1..10^3);
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Paolo P. Lava, Feb 06 2017
STATUS
approved