A256082 Non-palindromic balanced numbers in base 2.
70, 78, 150, 266, 282, 294, 310, 334, 350, 355, 371, 397, 413, 540, 554, 582, 630, 686, 723, 798, 813, 1036, 1042, 1068, 1074, 1098, 1116, 1130, 1148, 1158, 1178, 1190, 1210, 1221, 1238, 1253, 1270, 1302, 1305, 1334, 1337, 1347, 1358, 1379, 1390, 1427, 1438, 1459, 1470, 1483, 1515, 1550, 1557, 1582, 1589, 1613, 1630
Offset: 1
Examples
a(1) = 70 = 1000110[2] is balanced because 1*3 = 1*1 + 1*2.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
filter:= proc(n) local L,m; L:= convert(n,base,2); m:= (1+nops(L))/2; add(L[i]*(i-m),i=1..nops(L))=0 and L <> ListTools:-Reverse(L) end proc: select(filter, [$2..10000]); # Robert Israel, May 29 2018
-
PARI
is(n,b=2,d=digits(n,b),o=(#d+1)/2)=!(vector(#d,i,i-o)*d~)&&d!=Vecrev(d)
Comments