OFFSET
1,1
COMMENTS
LINKS
Zak Seidov, Table of n, a(n) for n=1..1000 [From Zak Seidov, Oct 20 2009]
Project Euler, Problem 217: Balanced Numbers.
FORMULA
MATHEMATICA
Reap[Do[id=IntegerDigits[n]; m=Floor[Length[id]/2]; If[Reverse[id]!=id&&Total[Take[id, m]]==Total[Take[id, -m]], Sow[n]], {n, 1010, 2000}]][[2, 1]] [From Zak Seidov, Oct 20 2009]
npbnQ[n_]:=Module[{idn=IntegerDigits[n], len}, len=Floor[Length[idn]/2]; idn!=Reverse[idn]&&Total[Take[idn, len]]==Total[Take[idn, -len]]]; Select[ Range[1000, 2000], npbnQ] (* Harvey P. Dale, Sep 25 2012 *)
PROG
CROSSREFS
KEYWORD
base,easy,nice,nonn
AUTHOR
M. F. Hasler, Nov 17 2008
STATUS
approved