Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A098488
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A098488 Another decimal Gray code for n. +0
1
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 10, 11, 12, 13, 14, 15, 16, 17, 18, 28, 29, 20, 21, 22, 23, 24, 25, 26, 27, 37, 38, 39, 30, 31, 32, 33, 34, 35, 36, 46, 47, 48, 49, 40, 41, 42, 43, 44, 45, 55, 56, 57, 58, 59, 50, 51, 52, 53, 54, 64, 65, 66, 67, 68, 69, 60, 61, 62 (list; graph; listen)
OFFSET

0,3

COMMENT

This is another decimal Gray code that considers that the distance between 9 and 0 is 1. Cyclic for (left-zero-padded) groups of n digits.

LINKS

D. E. Knuth, Gray Codes (Vol. 4 of TAOCP)

MATHEMATICA

AltGray[In_] := { tIn = IntegerDigits[In]; Ac = 0; Do[tIn[[z]] = Mod[tIn[[z]] - Ac, 10]; Ac += tIn[[z]], {z, 1, Length[tIn]}]; FromDigits[tIn, 10] }

CROSSREFS

Cf. A003100.

Sequence in context: A095966 A092596 A118763 this_sequence A003100 A118757 A118758

Adjacent sequences: A098485 A098486 A098487 this_sequence A098489 A098490 A098491

KEYWORD

base,nonn

AUTHOR

Jaume Simon Gispert (jaume(AT)nuem.com), Sep 10 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research