OFFSET
1,2
COMMENTS
Differs from A110751 in cases like n=1010, 1089, 1102, 1120, 1203, 1212, 1230, etc. - R. J. Mathar, Dec 13 2008
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000 (first 6649 terms from Jason Tarver)
Project Euler, Problem 217: Balanced Numbers.
EXAMPLE
From David A. Corneth, Sep 28 2023: (Start)
353 is a term as it has k = 3 digits and so we see that the sum of the first ceiling(k/2) = ceiling(3/2) = 2 and the last ceiling(k/2) = ceiling(3/2) = 2 are equal and indeed 3 + 5 = 5 + 3.
13922 is a term as it has k = 5 digits and so we see that the sum of the first ceiling(k/2) = ceiling(5/2) = 2 and the last ceiling(k/2) = ceiling(5/2) = 2 are equal and indeed 1 + 3 + 9 = 9 + 2 + 2. (End)
PROG
(PARI) is(n) = {my(d = digits(n), qdp1 = #d + 1); sum(i = 1, #d\2, d[i]-d[qdp1 - i]) == 0} \\ David A. Corneth, Sep 28 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jason Tarver (scottarver(AT)gmail.com), Nov 17 2008
EXTENSIONS
Definition clarified by N. J. A. Sloane, Oct 06 2023
STATUS
approved