login
A080465
Absolute difference between the two numbers formed by alternate digits of n.
6
1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 9
OFFSET
10,4
COMMENTS
Differs from A040115 first at a(110) = 9. - R. J. Mathar, Sep 19 2008
EXAMPLE
a(132546) = |124 - 356| = 232.
PROG
(PARI) A080465(n)=abs(vector(#n=digits(n), j, (-1)^j*10^((#n-j)\2))*n~) \\ M. F. Hasler, Jan 10 2016
CROSSREFS
See also A040997.
Sequence in context: A040163 A113608 A040115 * A347689 A151950 A104418
KEYWORD
base,easy,nonn,look
AUTHOR
Amarnath Murthy, Mar 02 2003
EXTENSIONS
More terms from Ray Chandler, Oct 11 2003
STATUS
approved