login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A040997 Absolute value between digits of n (version 3). 7
1, 2, 3, 4, 5, 6, 7, 8, 9, 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, 1, 0, 1, 2, 3, 4, 5, 6, 7 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

FORMULA

If decimal expansion of n is x1 x2 ... xk then a(n) = |x1-x2-x3- ... -xk|.

a(n) = |A055017(n)|. - R. J. Mathar, Aug 26 2011

EXAMPLE

a(371) = |3-7-1| = 5.

CROSSREFS

Cf. A037904, A040114, A040115, A040163.

Sequence in context: A001073 A076313 A055017 * A177894 A175398 A175401

Adjacent sequences:  A040994 A040995 A040996 * A040998 A040999 A041000

KEYWORD

nonn,base

AUTHOR

Felice Russo (frusso(AT)micron.com)

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 13:24 EST 2012. Contains 206031 sequences.