OFFSET
1,1
COMMENTS
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
143 in base 2 is 10001111. If we split the number in 10001 and 111 we have 1*1 + 0*2 + 0*3 + 0*4 + 1*5 = 6 for the left side and 1*1 + 1*2 + 1*3 = 6 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, 2), i=1..10^3);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Giovanni Resta, Feb 07 2017
STATUS
approved