OFFSET
1,1
COMMENTS
Here a number is called balanced if the sum of digits weighted by their arithmetic distance from the "center" is zero. Since palindromes (A029952) are trivially balanced, they are excluded here.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(n) local L, m, i;
L:= convert(n, base, 5);
m:= (1+nops(L))/2;
add(L[i]*(i-m), i=1..nops(L))=0 and L <> ListTools:-Reverse(L)
end proc:
select(filter, [$1..10000]); # Robert Israel, Nov 04 2024
PROG
(PARI) is(n, b=5, d=digits(n, b), o=(#d+1)/2)=!(vector(#d, i, i-o)*d~)&&d!=Vecrev(d)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Mar 14 2015
STATUS
approved