login

Revision History for A256085

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Non-palindromic balanced numbers in base 5.
(history; published version)
#9 by OEIS Server at Mon Nov 04 18:17:46 EST 2024
LINKS

Robert Israel, <a href="/A256085/b256085_1.txt">Table of n, a(n) for n = 1..10000</a>

#8 by Alois P. Heinz at Mon Nov 04 18:17:45 EST 2024
STATUS

proposed

approved

Discussion
Mon Nov 04
18:17
OEIS Server: Installed first b-file as b256085.txt.
#7 by Robert Israel at Mon Nov 04 17:02:26 EST 2024
STATUS

editing

proposed

#6 by Robert Israel at Mon Nov 04 17:02:21 EST 2024
LINKS

Robert Israel, <a href="/A256085/b256085_1.txt">Table of n, a(n) for n = 1..10000</a>

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

STATUS

approved

editing

#5 by N. J. A. Sloane at Sun Mar 15 01:35:35 EDT 2015
STATUS

proposed

approved

#4 by M. F. Hasler at Sat Mar 14 10:18:11 EDT 2015
STATUS

editing

proposed

#3 by M. F. Hasler at Sat Mar 14 10:17:48 EDT 2015
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.

Cf. A256082 - A256086, A256077 - A256079, A256075, A256076, A256080, A256081.

PROG

(PARI) is(n, b=5, d=digits(n, b), o=(#d+1)/2)=!(vector(#d, i, i-o)*d~)&&d!=Vecrev(d)

CROSSREFS
#2 by M. F. Hasler at Sat Mar 14 08:15:32 EDT 2015
NAME

allocated for M. F. Hasler

Non-palindromic balanced numbers in base 5.

DATA

140, 170, 202, 232, 266, 296, 328, 358, 392, 422, 454, 484, 518, 548, 635, 660, 685, 710, 735, 765, 790, 815, 840, 865, 877, 895, 902, 920, 927, 945, 952, 970, 977, 995, 1007, 1032, 1057, 1082, 1107, 1128, 1137, 1153, 1162, 1178, 1187, 1203, 1212, 1228, 1237, 1261, 1270, 1286, 1295, 1311, 1320, 1336, 1345, 1361, 1370

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.

This is the base-5 variant of the decimal version A256075 invented by Eric Angelini. See there, and the base-2 version A256082, for further information and examples.

Cf. A256082 - A256086, A256077 - A256079, A256075, A256076, A256080, A256081.

PROG

(PARI) is(n, b=5, d=digits(n, b), o=(#d+1)/2)=!(vector(#d, i, i-o)*d~)&d!=Vecrev(d)

KEYWORD

allocated

nonn,base,changed

AUTHOR

M. F. Hasler, Mar 14 2015

STATUS

approved

editing

#1 by M. F. Hasler at Sat Mar 14 07:44:51 EDT 2015
NAME

allocated for M. F. Hasler

KEYWORD

allocated

STATUS

approved