Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A155754
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A155754 A variation on 10^n mod 19 +0
1
1, -9, 5, -7, 6, 3, -8, -4, -2, -1, 9, -5, 7, -6, -3, 8, 4, 2, 1, -9, 5, -7, 6, 3, -8, -4, -2, -1, 9, -5, 7, -6, -3, 8, 4, 2, 1, -9, 5, -7, 6, 3, -8, -4, -2, -1, 9, -5, 7, -6, -3, 8, 4, 2, 1, -9, 5, -7, 6, 3, -8, -4, -2, -1, 9, -5, 7, -6, -3, 8, 4, 2 (list; graph; listen)
OFFSET

0,2

COMMENT

This sequence can be employed in a test for divisibility by 19 and works like A033940 works for 7.

The use of negative coefficients ensures the termination of the test because the modulus of the intermediate sum at each step of the test decreases strictly.

The test is successful if the final sum is 0.

The negative coefficients have the form (10^n mod 19) - 19 when 10^n mod 19 > 9.

Example: 8284 is divisible by 19 since |4*1 + 8*(-9) + 2*5 + 8*(-7)| = 114 and 4*1 + 1*(-9) + 1*5 = 0.

CROSSREFS

Cf. A033940, A119910, A117378.

Sequence in context: A019882 A021515 A011259 this_sequence A117019 A155692 A011203

Adjacent sequences: A155751 A155752 A155753 this_sequence A155755 A155756 A155757

KEYWORD

easy,sign

AUTHOR

Ferruccio Guidi (fguidi(AT)cs.unibo.it), Jan 26 2009

page 1

Search completed in 0.005 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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research