OFFSET
1,1
COMMENTS
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
If we split 2039 in 203 and 9 we have 3*1 + 0*2 + 2*3 = 9 for the left side and 9*1 = 9 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+1), 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 15 2017
STATUS
approved