login

Revision History for A037889

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

Showing all changes.
(1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*3^i} is base 3 representation of n and e(i) are digits d(i) in reverse order.
(history; published version)
#7 by R. J. Mathar at Mon Oct 19 14:18:53 EDT 2015
STATUS

editing

approved

#6 by R. J. Mathar at Mon Oct 19 14:18:48 EDT 2015
MAPLE

A037889 := proc(n)

local a, dgs ;

a := 0 ;

dgs := convert(n, base, 3);

for i from 1 to nops(dgs) do

a := a+ abs(op(i, dgs)-op(-i, dgs)) ;

end do:

a/2 ;

end proc: # R. J. Mathar, Oct 19 2015

STATUS

approved

editing

#5 by Russ Cox at Fri Mar 30 18:56:32 EDT 2012
AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

Clark Kimberling

Discussion
Fri Mar 30
18:56
OEIS Server: https://oeis.org/edit/global/285
#4 by N. J. A. Sloane at Sun Feb 20 03:00:00 EST 2005
NAME

(1/2)*SUMSum{|d(i)-e(i)|} where SUMSum{d(i)*3^i} is base 3 representation of n and e(i) are digits d(i) in reverse order.

KEYWORD

nonn,base,new

#3 by N. J. A. Sloane at Sat Sep 13 03:00:00 EDT 2003
KEYWORD

nonn,base,new

AUTHOR

Clark Kimberling, (ck6(AT)evansville.edu)

#2 by N. J. A. Sloane at Fri May 16 03:00:00 EDT 2003
NAME

(1/2)*SUM{|d(i)-e(i)|} where SUM{d(i)*3^i} is base 3 representation of n, and e(i) are digits d(i) in reverse order.

KEYWORD

nonn,base,new

AUTHOR

Clark Kimberling, ck6@cedar.(AT)evansville.edu

#1 by N. J. A. Sloane at Sat Dec 11 03:00:00 EST 1999
NAME

(1/2)*SUM{|d(i)-e(i)|} where SUM{d(i)*3^i} is base 3 representation of n, and e(i) are digits d(i) in reverse order.

DATA

0, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 2, 1, 0, 2, 1, 0, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 1, 0, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 1, 0, 1, 2, 1, 0, 3, 2, 1, 4, 3, 2, 3, 2, 1, 2, 1, 0, 3, 2, 1, 4, 3, 2, 3, 2, 1, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 2, 3, 1

OFFSET

1,6

KEYWORD

nonn,base

AUTHOR

Clark Kimberling, [email protected]

STATUS

approved